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:
98ae9b0
)
s390/monreader: Remove redundant NULL check before kfree
author
Syam Sidhardhan
<s.syam@samsung.com>
Wed, 6 Mar 2013 20:03:55 +0000
(
01:33
+0530)
committer
Martin Schwidefsky
<schwidefsky@de.ibm.com>
Wed, 17 Apr 2013 12:07:25 +0000
(14:07 +0200)
kfree on NULL pointer is a no-op.
Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/char/monreader.c
patch
|
blob
|
history
diff --git
a/drivers/s390/char/monreader.c
b/drivers/s390/char/monreader.c
index f4ff515db2515b3b8a48cf9bb9db397b5ba7b23a..0da3ae3cd63b3ae549e770f387a90237a594163a 100644
(file)
--- a/
drivers/s390/char/monreader.c
+++ b/
drivers/s390/char/monreader.c
@@
-174,8
+174,7
@@
static void mon_free_mem(struct mon_private *monpriv)
int i;
for (i = 0; i < MON_MSGLIM; i++)
- if (monpriv->msg_array[i])
- kfree(monpriv->msg_array[i]);
+ kfree(monpriv->msg_array[i]);
kfree(monpriv);
}