Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1074396pxb; Thu, 5 Nov 2020 23:33:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJx4hARM+XS0Ot86ov2XxC5AaMvlZYPcrGu5v8gyICZ/vQYKsU6KKdbjcYSkVM7QDqfjTdLr X-Received: by 2002:a05:6402:a46:: with SMTP id bt6mr717143edb.101.1604647998236; Thu, 05 Nov 2020 23:33:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604647998; cv=none; d=google.com; s=arc-20160816; b=b2rfYHIjF2CfFkyJf1sbwVU4+muPbMAJ6jNdm+E7DleGbJkB72WvnSY4WANIEzJZva /yZFsiF+E5otSSrIr/FHMz43+0waKUfvfLNqKFdakKco/p7Aq7512X/Fvf+xV4Ymv8en TwYAs7AdSplMjo3U/HE9cwZlNl010wguYPPZl98IlNsiHyhAcb237Lm6lSPkTQbd6B24 BDj7E6iW1PkKqEkKxSXFcS3XcQEdlOXSJ4y3AkgRFs8lteINVNBQCHfUmyAZXBHoi7hW T9YT4/KY24Bw5pr9NUP3pxS4QviRiwO3QDX9UvNGLjvKebSViETxRnGDfCdT3UjrrOnW y2zQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=PjmfGm4EXurKjtMQzJKg85PMtWxg6au6fvWpF4KZFQ0=; b=ArSdn79EC6WbojjWix2Rlyn7e+XzZtxt+cJsWvivavFRs0vZeVUqDMdHALMNTBLHOp +exia5dSJcWCihTOws32FJwQa9fqsZXir/fHBquQzqYvfeZXW2/NPXKRhn7y2VT8l4QW Q95gAN0m0U/YIt6QmcVAlKmlEXdhrZ7KwqeYfMH7PlqoK4mRHz2xUbj/q3xt5Hs1Sbxo QlTGknsbePUUSW9ePhxWXI9ouVMm8NJPV6jv9TGrn3dIki0uBmKToUqsCf2Eva4ZmG/J SHBm6yj7R5YxNTfTLBWdHJhp1ShXHpkbL35FDtof77v8AbC0cjg8ZfeiaAxKz1rQmSUJ 70Ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=k4JMvlIF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g8si281729ejm.389.2020.11.05.23.32.54; Thu, 05 Nov 2020 23:33:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=k4JMvlIF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726242AbgKFHbA (ORCPT + 99 others); Fri, 6 Nov 2020 02:31:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725830AbgKFHbA (ORCPT ); Fri, 6 Nov 2020 02:31:00 -0500 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB0C8C0613CF; Thu, 5 Nov 2020 23:30:59 -0800 (PST) Received: by mail-pf1-x441.google.com with SMTP id e7so499074pfn.12; Thu, 05 Nov 2020 23:30:59 -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=PjmfGm4EXurKjtMQzJKg85PMtWxg6au6fvWpF4KZFQ0=; b=k4JMvlIFGEdDNueJ49Y+2ob3zUipwp/qt9WNR78Oe/B51Jn1xMOPEQNfpx9mtrAsJv xqOU+OfapRBwkkpwbF6wnrROHmyP6SC0T5CEMxCcOuogL3qaji63QJBNilt2LOuhEASO 5CNP4W5GA+JiY5K8kFoZHIIx5+1NRz+Fl3p+ByHMyN49PdTJgcTme721qlmiOBuEozmY Drv3OBfUhxXuW+lMJSuNyJiytCPzTpH1FKgrpZa3moSyr2DB0MSs13r7ansesTEhlLJv 9WrzCKCCD9QNNoml0e0WFrDwKhD4dF4zNOx11yT3oGw2Hw0pTwhNeworsUZ+6USSBDa8 YwhQ== 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=PjmfGm4EXurKjtMQzJKg85PMtWxg6au6fvWpF4KZFQ0=; b=izZW6hbdFUWDIKWFGc0uiQB6kEu/TWetK7vDykcOmFBbq2n6ybytdltFD0aOM0iLtb eif5WitJg+c3nbxMRJ4BjbCeV+PeuK/a4blzZd4RKvyXA4OXgxq0RkEJCIdWo2ilq2Nr rmeMmlJxC1d6LAn/WHjoZE2nUPgL46ZleI45RwyxKaLnnCg5VqGPdm8SDUqjQDvepU6O xeepaB1TyM/OdEtMdloSgJhtg8yMBoSE+Avc9MAcSpXG7LJo52UacgsesFZMEgJGmWS6 js8w/Cfio5KSuSoEuuvn9vYqvTxTUwYIBfGVrkW3zQ6MHQBJ+7BipdP0q8atSD6GAmUp 4OzA== X-Gm-Message-State: AOAM530CDXhc6CsJbc0oqRK1HAYTd6cx1mKMaPUqqBfRH7hoGMCmYKlJ BM0KO7hHKrXisCh37ifydppmL5UDro4R X-Received: by 2002:a17:90a:1596:: with SMTP id m22mr1066156pja.189.1604647859498; Thu, 05 Nov 2020 23:30:59 -0800 (PST) Received: from he-cluster.localdomain (67.216.221.250.16clouds.com. [67.216.221.250]) by smtp.gmail.com with ESMTPSA id d7sm722973pgh.17.2020.11.05.23.30.58 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Nov 2020 23:30:58 -0800 (PST) From: xiakaixu1987@gmail.com X-Google-Original-From: kaixuxia@tencent.com To: a.zummo@towertech.it, alexandre.belloni@bootlin.com Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, Kaixu Xia Subject: [PATCH] rtc: sc27xx: Remove unnecessary conversion to bool Date: Fri, 6 Nov 2020 15:30:54 +0800 Message-Id: <1604647854-876-1-git-send-email-kaixuxia@tencent.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kaixu Xia Here we could use the '!=' expression to fix the following coccicheck warning: ./drivers/rtc/rtc-sc27xx.c:566:50-55: WARNING: conversion to bool not needed here Reported-by: Tosk Robot Signed-off-by: Kaixu Xia --- drivers/rtc/rtc-sc27xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-sc27xx.c b/drivers/rtc/rtc-sc27xx.c index 36810dd40cd3..6e65f68ea86d 100644 --- a/drivers/rtc/rtc-sc27xx.c +++ b/drivers/rtc/rtc-sc27xx.c @@ -563,7 +563,7 @@ static int sprd_rtc_check_power_down(struct sprd_rtc *rtc) * means the RTC has been powered down, so the RTC time values are * invalid. */ - rtc->valid = val == SPRD_RTC_POWER_RESET_VALUE ? false : true; + rtc->valid = val != SPRD_RTC_POWER_RESET_VALUE; return 0; } -- 2.20.0