diff options
author | Syam Sidhardhan <s.syam@samsung.com> | 2013-03-06 21:03:55 +0100 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-04-17 14:07:25 +0200 |
commit | a75a282d7238f6020957b14d8a14a1e851b9e1dd (patch) | |
tree | d73728d2b859e13090ac8ad65b41a70403a2d3e2 /drivers/s390/char | |
parent | s390/s390dbf.txt: Add doc: Debug views are removed in debug_unregister() (diff) | |
download | linux-a75a282d7238f6020957b14d8a14a1e851b9e1dd.tar.xz linux-a75a282d7238f6020957b14d8a14a1e851b9e1dd.zip |
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')
-rw-r--r-- | drivers/s390/char/monreader.c | 3 |
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); } |