mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-02 23:30:04 +00:00
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>
This commit is contained in:
parent
98ae9b020d
commit
a75a282d72
@ -174,7 +174,6 @@ 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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user