Skip to content
Snippets Groups Projects
Commit a75a282d authored by Syam Sidhardhan's avatar Syam Sidhardhan Committed by Martin Schwidefsky
Browse files

s390/monreader: Remove redundant NULL check before kfree


kfree on NULL pointer is a no-op.

Signed-off-by: default avatarSyam Sidhardhan <s.syam@samsung.com>
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 98ae9b02
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment