mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-03-23 03:38:05 +08:00
Staging: rtl8188eu: Fix warning of kfree check is not required.
This patch fixes the warning produced by checkpatch in the file rtw_cmd.c "kfree(NULL) is safe this check is probably not required". The patch fixes it in two places for this file. Signed-off-by: Elena Oat <oat.elena@gmail.com> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
138050a2d7
commit
73e183426f
@ -114,11 +114,8 @@ void _rtw_free_cmd_priv(struct cmd_priv *pcmdpriv)
|
||||
{
|
||||
|
||||
if (pcmdpriv) {
|
||||
if (pcmdpriv->cmd_allocated_buf)
|
||||
kfree(pcmdpriv->cmd_allocated_buf);
|
||||
|
||||
if (pcmdpriv->rsp_allocated_buf)
|
||||
kfree(pcmdpriv->rsp_allocated_buf);
|
||||
kfree(pcmdpriv->cmd_allocated_buf);
|
||||
kfree(pcmdpriv->rsp_allocated_buf);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user