These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / drivers / staging / rtl8188eu / hal / rtl8188eu_recv.c
index 06d1e65..d6d009a 100644 (file)
@@ -43,7 +43,7 @@ int   rtl8188eu_init_recv_priv(struct adapter *padapter)
 
        precvpriv->pallocated_recv_buf =
                kcalloc(NR_RECVBUFF, sizeof(struct recv_buf), GFP_KERNEL);
-       if (precvpriv->pallocated_recv_buf == NULL) {
+       if (!precvpriv->pallocated_recv_buf) {
                res = _FAIL;
                RT_TRACE(_module_rtl871x_recv_c_, _drv_err_,
                                ("alloc recv_buf fail!\n"));