[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-kernel
Subject:    [PATCH] net: hns: fix boolreturn.cocci warnings
From:       kbuild test robot <lkp () intel ! com>
Date:       2017-03-31 23:50:55
Message-ID: 20170331235055.GA28462 () lkp-wsm-ep1
[Download RAW message or body]

drivers/net/ethernet/hisilicon/hns/hns_enet.c:1548:8-9: WARNING: return of 0/1 in function 'hns_enable_serdes_lb' with return type bool

 Return statements in functions returning bool should use
 true/false instead of 1/0.
Generated by: scripts/coccinelle/misc/boolreturn.cocci

CC: lipeng <lipeng321@huawei.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

 hns_enet.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/net/ethernet/hisilicon/hns/hns_enet.c
+++ b/drivers/net/ethernet/hisilicon/hns/hns_enet.c
@@ -1545,7 +1545,7 @@ static bool hns_enable_serdes_lb(struct
 	/* wait h/w ready */
 	mdelay(300);
 
-	return 0;
+	return false;
 }
 
 static void hns_disable_serdes_lb(struct net_device *ndev)
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic