projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83c1b31
)
frv: remove unnecessary code
author
Greg Dietsche
<
[email protected]
>
Fri, 29 Jul 2011 15:46:16 +0000
(16:46 +0100)
committer
Linus Torvalds
<
[email protected]
>
Sat, 30 Jul 2011 06:41:09 +0000
(23:41 -0700)
remove unnecessary code that matches this coccinelle pattern
if (...)
return ret;
return ret;
Signed-off-by: Greg Dietsche <
[email protected]
>
Signed-off-by: David Howells <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/frv/mm/pgalloc.c
patch
|
blob
|
history
diff --git
a/arch/frv/mm/pgalloc.c
b/arch/frv/mm/pgalloc.c
index c42c83d507bc42c2208b21ff978d92e84c42d161..4fb63a36bd52ff0333f9d849a0a75479008aaa5e 100644
(file)
--- a/
arch/frv/mm/pgalloc.c
+++ b/
arch/frv/mm/pgalloc.c
@@
-133,13
+133,7
@@
void pgd_dtor(void *pgd)
pgd_t *pgd_alloc(struct mm_struct *mm)
{
- pgd_t *pgd;
-
- pgd = quicklist_alloc(0, GFP_KERNEL, pgd_ctor);
- if (!pgd)
- return pgd;
-
- return pgd;
+ return quicklist_alloc(0, GFP_KERNEL, pgd_ctor);
}
void pgd_free(struct mm_struct *mm, pgd_t *pgd)