Staging: rtl8188eu: os_dep: osdep_service.c: Remove explicit NULL comparison

Remove explicit NULL comparison and write it in its simpler form.
Replacement done with coccinelle:

@replace_rule@
expression e;
@@

-e == NULL
+ !e

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Shraddha Barke 2015-09-11 10:40:59 +05:30 committed by Greg Kroah-Hartman
parent a08cd2b7d0
commit b92ae1fd84
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ void *rtw_malloc2d(int h, int w, int size)
int j;
void **a = kzalloc(h*sizeof(void *) + h*w*size, GFP_KERNEL);
if (a == NULL) {
if (!a) {
pr_info("%s: alloc memory fail!\n", __func__);
return NULL;
}