summaryrefslogtreecommitdiff
path: root/drivers/s390/char/monreader.c
diff options
context:
space:
mode:
authorSyam Sidhardhan <s.syam@samsung.com>2013-03-07 00:03:55 +0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2013-04-17 16:07:25 +0400
commita75a282d7238f6020957b14d8a14a1e851b9e1dd (patch)
treed73728d2b859e13090ac8ad65b41a70403a2d3e2 /drivers/s390/char/monreader.c
parent98ae9b020d4bd18e9976d31374d47b382ceab8b3 (diff)
downloadlinux-a75a282d7238f6020957b14d8a14a1e851b9e1dd.tar.xz
s390/monreader: Remove redundant NULL check before kfree
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>
Diffstat (limited to 'drivers/s390/char/monreader.c')
-rw-r--r--drivers/s390/char/monreader.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/s390/char/monreader.c b/drivers/s390/char/monreader.c
index f4ff515db251..0da3ae3cd63b 100644
--- 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);
}