mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
s390/monreader: Remove redundant NULL check before kfree
kfree on NULL pointer is a no-op. Signed-off-by: Syam Sidhardhan <[email protected]> Signed-off-by: Heiko Carstens <[email protected]> Signed-off-by: Martin Schwidefsky <[email protected]>
This commit is contained in:
parent
98ae9b020d
commit
a75a282d72
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue