From patchwork Fri Jan 5 03:43:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: venkat.prashanth2498@gmail.com X-Patchwork-Id: 10146005 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4F2E3601A1 for ; Fri, 5 Jan 2018 03:44:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5F5652860B for ; Fri, 5 Jan 2018 03:44:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 54251288DF; Fri, 5 Jan 2018 03:44:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BF6E42860B for ; Fri, 5 Jan 2018 03:44:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751302AbeAEDoI (ORCPT ); Thu, 4 Jan 2018 22:44:08 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:43996 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751250AbeAEDoH (ORCPT ); Thu, 4 Jan 2018 22:44:07 -0500 Received: by mail-pf0-f193.google.com with SMTP id e3so1696663pfi.10 for ; Thu, 04 Jan 2018 19:44:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=UHRYcRpuVUh02ttWeBiz3LwTDLmCd1OAzK947BBQfXs=; b=FMI1zxaL4FKnezGoM6Jyj1Wga/DiBeTXM4VZPkA9G6qUiTLIHntBU8T5Wfwi3mV7uP Z9XRKY5Bye1HT4KzDWWK6tLQ/vRN5W47WoIa0pAcfrcvNozxDP3JrvWXSxQiWpljyTTQ ceM6JaatyaB09piJzdltbhtTQSXlNOEth8wFhnrFVtY3IFcNH50vZFLAdW/1B3UXrEmY nQtw8dRiwFt2fT92K8lo5am2CHdzP5HkW8HONeaX0BOiXb2VgsvXcyXgm77JB8bUpFeR DXmEdT2cZOB9JvthNq5zbfMr80uTLXeXT7L1LfBsdci6VmVpTKE4wqzERQxt10HUV45F NfEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=UHRYcRpuVUh02ttWeBiz3LwTDLmCd1OAzK947BBQfXs=; b=bnlOfTIrYHVdeajf0BwsjmcKDHyxq+JWfHjBPEH4irZ4XCxjdr8NL808GZ/X7xQaki +xpxnTfx2gNesw04X4k26W24V+6X6Welxi0YeMZyvQwvHABgKF/AQW5eK2pEPw7FZS/L uRn17THoLJnvHFSXjeNOD7udVgAt0du+XhpVm3et/JC8UJSNF54lkqot9mcd+36RWTTX JZVw0pqHsUh3dCja3KUK494yLVsOj1mIfteq5usq63HJceVQErd2akpLHWjv6Xg8FzVt M58/esKIak7RsDk+T9qPFJ82dIrQPyoqZK1qaiitQV47E5Zg78zIbIcupSkHeP9nAmg9 v9dA== X-Gm-Message-State: AKGB3mL6MZz8Zx0F1aVggALUqyYAr6TUd6F2O2keCAarmASVmcHmQJUj 3nM9mvD6gt41neMCyg2WjZg= X-Google-Smtp-Source: ACJfBosCqrRlKWbTx7zIBEu7evpHGBqIUnAU9JhdB6DqwhG5NHPlA6fffkoR+SYKHeyvC9tqO7p3AA== X-Received: by 10.99.181.3 with SMTP id y3mr1376577pge.196.1515123846776; Thu, 04 Jan 2018 19:44:06 -0800 (PST) Received: from localhost.localdomain ([117.209.174.148]) by smtp.gmail.com with ESMTPSA id u6sm10823374pfk.126.2018.01.04.19.44.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Jan 2018 19:44:06 -0800 (PST) From: venkat.prashanth2498@gmail.com To: lars@metafoo.de, Michael.Hennerich@analog.com, jic23@kernel.org Cc: knaack.h@gmx.de, pmeerw@pmeerw.net, linux-iio@vger.kernel.org, Venkat Prashanth B U Subject: [PATCH 2/2] Drivers:iio:adc: remove comparison to bool Date: Fri, 5 Jan 2018 09:13:57 +0530 Message-Id: <1515123837-32473-1-git-send-email-venkat.prashanth2498@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Venkat Prashanth B U This is the patch to the file ti_am335x_adc.c which fixes the following coccinelle warning: WARNING: Comparison to bool Signed-off-by: Venkat Prashanth B U --- drivers/iio/adc/ti_am335x_adc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/ti_am335x_adc.c b/drivers/iio/adc/ti_am335x_adc.c index b3e573c..80df5a3 100644 --- a/drivers/iio/adc/ti_am335x_adc.c +++ b/drivers/iio/adc/ti_am335x_adc.c @@ -523,7 +523,7 @@ static int tiadc_read_raw(struct iio_dev *indio_dev, } am335x_tsc_se_adc_done(adc_dev->mfd_tscadc); - if (found == false) + if (!found) ret = -EBUSY; err_unlock: