staging: rtl8712: usb_ops_linux: fixed a comparison coding style issue
authorSamuel Dominguez Lorenzo <yysamueldominguez@gmail.com>
Sun, 13 Sep 2015 15:18:33 +0000 (16:18 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Sep 2015 15:50:44 +0000 (08:50 -0700)
Fixed a coding style issue where a comparison had the constant on the
left side of the test instead of being on the right side of it.

Signed-off-by: Samuel Dominguez Lorenzo <yysamueldominguez@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/usb_ops_linux.c

index c3a4e3f..9d0d031 100644 (file)
@@ -268,7 +268,7 @@ u32 r8712_usb_read_port(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *rmem)
                return _FAIL;
        if (!precvbuf->reuse == false || !precvbuf->pskb) {
                precvbuf->pskb = skb_dequeue(&precvpriv->free_recv_skb_queue);
-               if (NULL != precvbuf->pskb)
+               if (precvbuf->pskb != NULL)
                        precvbuf->reuse = true;
        }
        if (precvbuf != NULL) {