From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933527AbcA3RtK (ORCPT ); Sat, 30 Jan 2016 12:49:10 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:33522 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933105AbcA3RpF (ORCPT ); Sat, 30 Jan 2016 12:45:05 -0500 From: Mathieu OTHACEHE To: johan@kernel.org, gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Mathieu OTHACEHE Subject: [PATCH 04/14] USB: serial: iuu_phoenix: remove comparison of bool Date: Sat, 30 Jan 2016 18:44:37 +0100 Message-Id: <1454175887-16158-5-git-send-email-m.othacehe@gmail.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1454175887-16158-1-git-send-email-m.othacehe@gmail.com> References: <1454175887-16158-1-git-send-email-m.othacehe@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes the following coccinelle warning: drivers/usb/serial/iuu_phoenix.c:383:5-9: WARNING: Comparison of bool to 0/1 drivers/usb/serial/iuu_phoenix.c:363:5-9: WARNING: Comparison of bool to 0/1 Signed-off-by: Mathieu OTHACEHE --- drivers/usb/serial/iuu_phoenix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/serial/iuu_phoenix.c b/drivers/usb/serial/iuu_phoenix.c index 5ad4a0f..344b4ee 100644 --- a/drivers/usb/serial/iuu_phoenix.c +++ b/drivers/usb/serial/iuu_phoenix.c @@ -360,7 +360,7 @@ static void iuu_led_activity_on(struct urb *urb) int result; char *buf_ptr = port->write_urb->transfer_buffer; *buf_ptr++ = IUU_SET_LED; - if (xmas == 1) { + if (xmas) { get_random_bytes(buf_ptr, 6); *(buf_ptr+7) = 1; } else { @@ -380,7 +380,7 @@ static void iuu_led_activity_off(struct urb *urb) struct usb_serial_port *port = urb->context; int result; char *buf_ptr = port->write_urb->transfer_buffer; - if (xmas == 1) { + if (xmas) { iuu_rxcmd(urb); return; } else { -- 2.6.4