OSDN Git Service

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 9cae1a1..fd5cb8a 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;
        }