Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73e18342 authored by Elena Oat's avatar Elena Oat Committed by Greg Kroah-Hartman
Browse files

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: default avatarElena Oat <oat.elena@gmail.com>
Acked-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 138050a2
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -114,10 +114,7 @@ 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);
	}
}