Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
030274ae
Commit
030274ae
authored
Oct 21, 2005
by
Ralf Baechle
Browse files
Options
Browse Files
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
Show 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
;
}
...
...
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
;
...
...
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