From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752311AbcBOQ12 (ORCPT ); Mon, 15 Feb 2016 11:27:28 -0500 Received: from mga09.intel.com ([134.134.136.24]:37388 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752122AbcBOQ1Z (ORCPT ); Mon, 15 Feb 2016 11:27:25 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,451,1449561600"; d="scan'208";a="912811876" Date: Tue, 16 Feb 2016 00:25:57 +0800 From: kbuild test robot To: Amitkumar Karwar Cc: kbuild-all@01.org, linux-bluetooth@vger.kernel.org, Nishant Sarmukadam , linux-kernel@vger.kernel.org, Cathy Luo , marcel@holtmann.org, Ganapathi Bhat , Amitkumar Karwar Subject: [PATCH] Bluetooth: hci_uart: fix boolreturn.cocci warnings Message-ID: <20160215162557.GA65463@lkp-hsx03> References: <201602160006.xiXzASZ0%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1455550188-25934-1-git-send-email-akarwar@marvell.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org drivers/bluetooth/hci_mrvl.c:411:9-10: WARNING: return of 0/1 in function 'mrvl_fw_loaded' 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: Ganapathi Bhat Signed-off-by: Fengguang Wu --- hci_mrvl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/bluetooth/hci_mrvl.c +++ b/drivers/bluetooth/hci_mrvl.c @@ -408,9 +408,9 @@ static bool mrvl_fw_loaded(struct hci_ua struct fw_data *fw_data = mrvl->fwdata; if ((get_cts(hu->tty)) || (fw_data->fw_loaded)) - return 1; + return true; else - return 0; + return false; } /* Set the baud rate */