From: kbuild test robot Date: Thu, 13 Apr 2017 14:39:30 +0800 Subject: [Intel-wired-lan] [PATCH] ixgbevf: fix boolreturn.cocci warnings In-Reply-To: <20170412202107.55834-3-anthony.l.nguyen@intel.com> References: <201704131424.ocJX3tao%fengguang.wu@intel.com> Message-ID: <20170413063929.GA151102@ivytown2.lkp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: intel-wired-lan@osuosl.org List-ID: drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c:1683:8-9: WARNING: return of 0/1 in function 'ixgbevf_init_rss_key' 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: Tony Nguyen Signed-off-by: Fengguang Wu --- ixgbevf_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c +++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c @@ -1680,7 +1680,7 @@ static inline bool ixgbevf_init_rss_key( adapter->rss_key = rss_key; } - return 0; + return false; } static void ixgbevf_setup_vfmrqc(struct ixgbevf_adapter *adapter)