staging: rtl8187se: bool tests don't need comparisons
authorTeodora Baluta <teobaluta@gmail.com>
Fri, 25 Oct 2013 09:00:16 +0000 (12:00 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Oct 2013 21:34:42 +0000 (14:34 -0700)
This patch fixes the following coccinelle warning:

drivers/staging/rtl8187se/r8180_core.c:2217:5-40: WARNING: Comparison to bool

Signed-off-by: Teodora Baluta <teobaluta@gmail.com>
Reviewed-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8187se/r8180_core.c

index eb9822215c15c42f1109d4f781c2fa3ccdb8cd3d..8d767f35ce89103a602a907cbb5cc4d261784452 100644 (file)
@@ -2214,7 +2214,7 @@ static void watch_dog_adaptive(unsigned long data)
                TxPwrTracking87SE((struct net_device *)data);
 
        /* Perform DIG immediately. */
-       if (CheckDig((struct net_device *)data) == true)
+       if (CheckDig((struct net_device *)data))
                queue_work(priv->ieee80211->wq, (void *)&priv->ieee80211->hw_dig_wq);
        rtl8180_watch_dog((struct net_device *)data);