Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
OpenBMC Firmware
talos-obmc-linux
Commits
030274ae
Commit
030274ae
authored
19 years ago
by
Ralf Baechle
Browse files
Options
Download
Email Patches
Plain Diff
Remove useless casts of kmalloc return values.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
e5adb877
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
arch/mips/au1000/common/dbdma.c
arch/mips/au1000/common/dbdma.c
+1
-2
arch/mips/kernel/irixelf.c
arch/mips/kernel/irixelf.c
+1
-3
No files found.
arch/mips/au1000/common/dbdma.c
View file @
030274ae
...
...
@@ -290,8 +290,7 @@ au1xxx_dbdma_chan_alloc(u32 srcid, u32 destid,
/* If kmalloc fails, it is caught below same
* as a channel not available.
*/
ctp
=
(
chan_tab_t
*
)
kmalloc
(
sizeof
(
chan_tab_t
),
GFP_KERNEL
);
ctp
=
kmalloc
(
sizeof
(
chan_tab_t
),
GFP_KERNEL
);
chan_tab_ptr
[
i
]
=
ctp
;
break
;
}
...
...
This diff is collapsed.
Click to expand it.
arch/mips/kernel/irixelf.c
View file @
030274ae
...
...
@@ -422,9 +422,7 @@ static inline int look_for_irix_interpreter(char **name,
if
(
*
name
!=
NULL
)
goto
out
;
*
name
=
(
char
*
)
kmalloc
((
epp
->
p_filesz
+
strlen
(
IRIX_EMUL
)),
GFP_KERNEL
);
*
name
=
kmalloc
(
epp
->
p_filesz
+
strlen
(
IRIX_EMUL
),
GFP_KERNEL
);
if
(
!*
name
)
return
-
ENOMEM
;
...
...
This diff is collapsed.
Click to expand it.
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