Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2451178imu; Wed, 21 Nov 2018 11:51:50 -0800 (PST) X-Google-Smtp-Source: AFSGD/VcV3p5VCcwrpSS6Wnd6a+khqIC8qZc9NxPX24cas10NYwXZRrmELLo77ir4efAtW3/zlQq X-Received: by 2002:a17:902:166:: with SMTP id 93-v6mr7990869plb.68.1542829910613; Wed, 21 Nov 2018 11:51:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542829910; cv=none; d=google.com; s=arc-20160816; b=tJkdJNqYffv3oC0JbfR+y2d3/mp64oICJkMS6qd6THDQy7sFdl1JtLWKU6RFxzmqd6 i8A3njA4C6sBVUF6HtoQMTI+o0gwxjmkUGBZsbMt4FUypqxTqzRtQ2wPweoDydIraBcx FiYJGNXrDaOYf8nGk9UnitpHPyGY7ES5loMf0+O9saYUiSBuC0535II9X9gRV93o8uP5 gWa/QQg007wAbC64O3E9dxvX247v/VSPrwsopI+cZ/WciOcI/Qb51//19cHzCxhj2TMG B4aEzkq6BEOcYuVnZzq18pVlWgWudJomVPaqpZ9bf8v0fDTRZtIkhcgq5rONUAAf1Ryi lWFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :subject:cc:to:from:date; bh=hK0oOZ4jcqIMn+8IKFDq4CpOTGX9M9m7AJGhc1BgGLA=; b=jHtY2nd+X/Q/bZQ+EcbHlso87DcKkcBCHm/tHsiIvzDeWDv5DOmfaVVytuFVSJCwlv 0yt8vLZjKljrqObL3kRm34MNUcWODPwbxZBoh9uc9HdjpNdJc73n/LTm3AE4YDe0XJ5F 2pbUkfFCOMkLmTLHECFSwVsXzpSgUKK4cvutuL+ojPhiTL7xpYW5bc7VHKaA6hZWZV8s wWy13FqDOi5L3HfFtZAK2d2Ys3nDvy97u0FqfaDzAqmTHMchFGkKxS8WrOin4ox4CPc8 xC/fjYSb8RZnPdtjSeaA3LYGAiJO4IVNvgipt222MOpaaow+JptZpOEKNXeFKwFGHKPf mEyw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j38-v6si45877552pgl.138.2018.11.21.11.51.35; Wed, 21 Nov 2018 11:51:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731465AbeKVEJN (ORCPT + 99 others); Wed, 21 Nov 2018 23:09:13 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:15667 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727787AbeKVEJN (ORCPT ); Wed, 21 Nov 2018 23:09:13 -0500 X-IronPort-AV: E=Sophos;i="5.56,261,1539640800"; d="scan'208";a="356666851" Received: from 136.3.95.79.rev.sfr.net (HELO hadrien) ([79.95.3.136]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Nov 2018 18:33:52 +0100 Date: Wed, 21 Nov 2018 18:33:51 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: Anatolij Gustschin cc: linux-usb@vger.kernel.org, linux-spi@vger.kernel.org, linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, broonie@kernel.org, atull@kernel.org, mdf@kernel.org, kbuild-all@01.org Subject: [PATCH] usb: misc: fix boolconv.cocci warnings Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: kbuild test robot drivers/usb/misc/ft232h-intf.c:816:27-32: WARNING: conversion to bool not needed here Remove unneeded conversion to bool Semantic patch information: Relational and logical operators evaluate to bool, explicit conversion is overly verbose and unneeded. Generated by: scripts/coccinelle/misc/boolconv.cocci Fixes: 0772a5bf580c ("usb: misc: add driver for FT232H based FPGA configuration devices") CC: Anatolij Gustschin Signed-off-by: kbuild test robot Signd-off-by: Julia Lawall --- url: https://github.com/0day-ci/linux/commits/Anatolij-Gustschin/Add-support-for-ARRI-FPGA-configuration/20181120-161201 :::::: branch date: 17 hours ago :::::: commit date: 17 hours ago Please take the patch only if it's a positive warning. Thanks! ft232h-intf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/usb/misc/ft232h-intf.c +++ b/drivers/usb/misc/ft232h-intf.c @@ -813,7 +813,7 @@ static int ftdi_mpsse_gpio_get(struct gp dev_dbg(chip->parent, "%s: offset %d\n", __func__, offset); - low = offset < 5 ? true : false; + low = offset < 5; mutex_lock(&priv->ops_mutex);