From: Syam Sidhardhan Date: Wed, 6 Mar 2013 20:03:55 +0000 (+0530) Subject: s390/monreader: Remove redundant NULL check before kfree X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a75a282d7238f6020957b14d8a14a1e851b9e1dd;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git s390/monreader: Remove redundant NULL check before kfree kfree on NULL pointer is a no-op. Signed-off-by: Syam Sidhardhan Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky --- 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); }