Staging: rtl8188eu: os_dep: usb_ops_linux.c - style fix
authorDerek Robson <robsonde@gmail.com>
Sun, 22 Jan 2017 05:17:24 +0000 (18:17 +1300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Jan 2017 08:56:29 +0000 (09:56 +0100)
Fixed comparison, moved the constant to the right side of the test
Found using checkpatch

Signed-off-by: Derek Robson <robsonde@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c

index 9cae1a1a71a1a51d83665b5954a21b0fd203be4c..fd5cb8a008f25cd3f4ad243232f6e457c277d2c8 100644 (file)
@@ -457,7 +457,7 @@ u32 usb_read_port(struct adapter *adapter, u32 addr, struct recv_buf *precvbuf)
 
        if ((!precvbuf->reuse) || (precvbuf->pskb == NULL)) {
                precvbuf->pskb = skb_dequeue(&precvpriv->free_recv_skb_queue);
-               if (NULL != precvbuf->pskb)
+               if (precvbuf->pskb != NULL)
                        precvbuf->reuse = true;
        }