]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/staging/rtl8712/mlme_linux.c
staging: rtl8712: mlme_linux: Clean up tests if NULL returned on failure
[karo-tx-linux.git] / drivers / staging / rtl8712 / mlme_linux.c
index e4e4bdee78bed7b0aa375eabb6e2d07fc3b96fb2..af7c4a47738ab217b75d130e2a2b9ec70e5b81fc 100644 (file)
@@ -153,7 +153,7 @@ void r8712_report_sec_ie(struct _adapter *adapter, u8 authmode, u8 *sec_ie)
        buff = NULL;
        if (authmode == _WPA_IE_ID_) {
                buff = kzalloc(IW_CUSTOM_MAX, GFP_ATOMIC);
-               if (buff == NULL)
+               if (!buff)
                        return;
                p = buff;
                p += sprintf(p, "ASSOCINFO(ReqIEs=");