Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
0af46590
Commit
0af46590
authored
Jul 12, 2016
by
Madalin Bucur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fsl/fman: fix return value checking
Signed-off-by:
Madalin Bucur
<
madalin.bucur@nxp.com
>
parent
73912d51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
drivers/net/ethernet/freescale/fman/fman.c
drivers/net/ethernet/freescale/fman/fman.c
+2
-2
No files found.
drivers/net/ethernet/freescale/fman/fman.c
View file @
0af46590
...
...
@@ -618,7 +618,7 @@ struct fman {
unsigned
long
cam_offset
;
size_t
cam_size
;
/* Fifo in MURAM */
int
fifo_offset
;
unsigned
long
fifo_offset
;
size_t
fifo_size
;
u32
liodn_base
[
64
];
...
...
@@ -2036,7 +2036,7 @@ static int fman_init(struct fman *fman)
/* allocate MURAM for FIFO according to total size */
fman
->
fifo_offset
=
fman_muram_alloc
(
fman
->
muram
,
fman
->
state
->
total_fifo_size
);
if
(
IS_ERR_VALUE
(
fman
->
cam
_offset
))
{
if
(
IS_ERR_VALUE
(
fman
->
fifo
_offset
))
{
free_init_resources
(
fman
);
dev_err
(
fman
->
dev
,
"%s: MURAM alloc for BMI FIFO failed
\n
"
,
__func__
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment