From: Teodora Baluta Date: Fri, 25 Oct 2013 09:00:16 +0000 (+0300) Subject: staging: rtl8187se: bool tests don't need comparisons X-Git-Tag: upstream/snapshot3+hdmi~4059^2~53 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0fe249a5c80e473d6a0a1ba39457af1a6cb30448;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git staging: rtl8187se: bool tests don't need comparisons 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 Reviewed-by: Rusty Russell Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8187se/r8180_core.c b/drivers/staging/rtl8187se/r8180_core.c index eb98222..8d767f3 100644 --- a/drivers/staging/rtl8187se/r8180_core.c +++ b/drivers/staging/rtl8187se/r8180_core.c @@ -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);