Skip to content

Commit

Permalink
staging: rtl8723bs: Remove comparison to NULL
Browse files Browse the repository at this point in the history
Remove comparison to NULL in drivers/staging/rtl8723bs/core/rtw_ap.c:1449.
Issue found by checkpatch.pl

Signed-off-by: Wambui Karuga <wambui.karugax@gmail.com>
Link: https://lore.kernel.org/r/20191010132058.20887-1-wambui.karugax@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Wambui Karuga authored and Greg Kroah-Hartman committed Oct 13, 2019
1 parent 91d6f91 commit c86673e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/rtl8723bs/core/rtw_ap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1447,7 +1447,7 @@ u8 rtw_ap_set_pairwise_key(struct adapter *padapter, struct sta_info *psta)
u8 res = _SUCCESS;

ph2c = rtw_zmalloc(sizeof(struct cmd_obj));
if (ph2c == NULL) {
if (!ph2c) {
res = _FAIL;
goto exit;
}
Expand Down

0 comments on commit c86673e

Please sign in to comment.