summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8188eu
diff options
context:
space:
mode:
authorElena Oat <oat.elena@gmail.com>2014-03-03 23:34:46 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-03-07 14:34:12 -0800
commit73e183426f8f3c2a3e030bf63c2112f7a080ded8 (patch)
tree500fad94b7005153c53e3840062c248e94993309 /drivers/staging/rtl8188eu
parent138050a2d78a2bad6f24b6396f38fcc3b73b49c2 (diff)
downloadblackbird-obmc-linux-73e183426f8f3c2a3e030bf63c2112f7a080ded8.tar.gz
blackbird-obmc-linux-73e183426f8f3c2a3e030bf63c2112f7a080ded8.zip
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>
Diffstat (limited to 'drivers/staging/rtl8188eu')
-rw-r--r--drivers/staging/rtl8188eu/core/rtw_cmd.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/staging/rtl8188eu/core/rtw_cmd.c b/drivers/staging/rtl8188eu/core/rtw_cmd.c
index 0cab7152a51c..976f000d0f51 100644
--- a/drivers/staging/rtl8188eu/core/rtw_cmd.c
+++ b/drivers/staging/rtl8188eu/core/rtw_cmd.c
@@ -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);
}
}
OpenPOWER on IntegriCloud