From: Samuel Dominguez Lorenzo Date: Sun, 13 Sep 2015 15:18:33 +0000 (+0100) Subject: staging: rtl8712: usb_ops_linux: fixed a comparison coding style issue X-Git-Tag: KARO-TX6UL-2015-11-03~34^2~2033 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4579ec9af094361bef38f37005897d6de6cc7dcb;p=karo-tx-linux.git staging: rtl8712: usb_ops_linux: fixed a comparison coding style issue 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8712/usb_ops_linux.c b/drivers/staging/rtl8712/usb_ops_linux.c index c3a4e3f26b40..9d0d0311a49e 100644 --- a/drivers/staging/rtl8712/usb_ops_linux.c +++ b/drivers/staging/rtl8712/usb_ops_linux.c @@ -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) {