diff options
author | Syam Sidhardhan <s.syam@samsung.com> | 2013-03-06 15:03:55 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-04-17 08:07:25 -0400 |
commit | a75a282d7238f6020957b14d8a14a1e851b9e1dd (patch) | |
tree | d73728d2b859e13090ac8ad65b41a70403a2d3e2 /drivers/s390 | |
parent | 98ae9b020d4bd18e9976d31374d47b382ceab8b3 (diff) |
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')
-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) | |||
174 | int i; | 174 | int i; |
175 | 175 | ||
176 | for (i = 0; i < MON_MSGLIM; i++) | 176 | for (i = 0; i < MON_MSGLIM; i++) |
177 | if (monpriv->msg_array[i]) | 177 | kfree(monpriv->msg_array[i]); |
178 | kfree(monpriv->msg_array[i]); | ||
179 | kfree(monpriv); | 178 | kfree(monpriv); |
180 | } | 179 | } |
181 | 180 | ||