diff options
author | Alexander Beregalov <a.beregalov@gmail.com> | 2011-03-26 17:18:14 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-04-20 20:45:59 (GMT) |
commit | 400838659314cc67032f35962eee5a8639981b61 (patch) | |
tree | 1b03ff869d305c5b7aca8ef2c9d5a6b1ff93c5bc /drivers/staging/rtl8712/rtl871x_mp.c | |
parent | cc614b6970ed9957d51255682c2784c2310623af (diff) | |
download | linux-fsl-qoriq-400838659314cc67032f35962eee5a8639981b61.tar.xz |
Staging: rtl8712: redundant null check before kfree()
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rtl8712/rtl871x_mp.c')
-rw-r--r-- | drivers/staging/rtl8712/rtl871x_mp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/rtl8712/rtl871x_mp.c b/drivers/staging/rtl8712/rtl871x_mp.c index 427467c..3ad4791 100644 --- a/drivers/staging/rtl8712/rtl871x_mp.c +++ b/drivers/staging/rtl8712/rtl871x_mp.c @@ -274,8 +274,7 @@ void r8712_SetChannel(struct _adapter *pAdapter) pparm = (struct SetChannel_parm *)_malloc(sizeof(struct SetChannel_parm)); if (pparm == NULL) { - if (pcmd != NULL) - kfree((u8 *)pcmd); + kfree(pcmd); return; } pparm->curr_ch = pAdapter->mppriv.curr_ch; |