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:
a0fa8e3
)
[S390] s390dbf: Remove needless check for NULL pointer.
author
Michael Holzheu
<holzheu@linux.vnet.ibm.com>
Thu, 26 Mar 2009 14:24:50 +0000
(15:24 +0100)
committer
Martin Schwidefsky
<schwidefsky@de.ibm.com>
Thu, 26 Mar 2009 14:24:29 +0000
(15:24 +0100)
The check for NULL pointer has already be done before. Therefore we can remove
the second check.
Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/debug.c
patch
|
blob
|
history
diff --git
a/arch/s390/kernel/debug.c
b/arch/s390/kernel/debug.c
index 369de12b8733621b2a66f7723c7c3d78d9f2731a..be8bceaf37d96660e9b5e3ecd56d689fd86bc3e6 100644
(file)
--- a/
arch/s390/kernel/debug.c
+++ b/
arch/s390/kernel/debug.c
@@
-642,8
+642,7
@@
found:
p_info = kmalloc(sizeof(file_private_info_t),
GFP_KERNEL);
if(!p_info){
- if(debug_info_snapshot)
- debug_info_free(debug_info_snapshot);
+ debug_info_free(debug_info_snapshot);
rc = -ENOMEM;
goto out;
}