lkml.org 
[lkml]   [2016]   [Feb]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Bluetooth: hci_uart: fix boolreturn.cocci warnings
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 <gbhat@marvell.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

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 */
\
 
 \ /
  Last update: 2016-02-15 17:41    [W:0.053 / U:25.432 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site