From patchwork Wed May 22 13:22:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Rutland X-Patchwork-Id: 164834 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp861685ili; Wed, 22 May 2019 06:25:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqzddR5TV5VkwtHPnLlHlLGgfE7y93SnUn5V5aMy9rJbLq0Az92STb2nPWJK2aYRuAOFrSKp X-Received: by 2002:a17:902:163:: with SMTP id 90mr91512862plb.212.1558531546413; Wed, 22 May 2019 06:25:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558531546; cv=none; d=google.com; s=arc-20160816; b=tZE39wx2aiixXBluN/0XMMAWKKoGcuqWIFkA83UjNJpgkhdwgQxXBuh8Ot6GHz+JCt 25TI2sd0Aa0faX1JrrjTtZiCjtig/Ha9i0rD48ZZXaWT6BZQmH7CfJrrNU3QajcKFXiZ Ct9XQXuI7Xx8NjUCDSLiliUT4anbCuzHDYKgtpsz3sxgMdmF7ebHrGfcfliF8Iswixu6 KnbartB9hJyuHd3or76UQWvJkOvhkOzg88aP6aS6b/EbLbRWcYzp3d8liT+7M3Wbuaae RJBhKYKB9FMrtuVWz/ZzjZjeb8klH9FyC2PpbYX5q0mrYkv8xpiGsTj+r/zkVzJxL3Nh zuag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=3jBeT9JORHGiKIekNKwVajSCjOG77ZXWMfTmPqk7qeE=; b=YX92db3b3Ph8XBw7XX04/6tTtYul9QIIHCIjFF6K6FMLc5Ptb1hoaBm6CnM46WMoUW c+Dvok41adZgVuQuHetH0LRDQwvUPy74LbCQmNLokDBZRA1r0G6FPQ06d2m6mkhdBxLK LjfoCLuKC+pNrI+k3Bmw8GlCCQOHg2Of0liC+BWPGraIn2n6xH0uJIbEAM+yDyTpR/0E IM3rBzfZQtkMi+01JC3CwpbnevxczujSsO30s/QsCg2q9MpVoDIXKRwCC7ej20yOry0D lePe8OAittMPu34mAPE+QALOUXKcovvkV6ESNrN3rhhF9SgPEz6cq0Jkkz6ypvlZ5j8C biFA== 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 a24si24195032pls.372.2019.05.22.06.25.46; Wed, 22 May 2019 06:25:46 -0700 (PDT) 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 S1729744AbfEVNZp (ORCPT + 30 others); Wed, 22 May 2019 09:25:45 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:51338 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729126AbfEVNZo (ORCPT ); Wed, 22 May 2019 09:25:44 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9BFFF80D; Wed, 22 May 2019 06:25:43 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 5ACE53F575; Wed, 22 May 2019 06:25:39 -0700 (PDT) From: Mark Rutland To: linux-kernel@vger.kernel.org, peterz@infradead.org, will.deacon@arm.com Cc: aou@eecs.berkeley.edu, arnd@arndb.de, bp@alien8.de, catalin.marinas@arm.com, davem@davemloft.net, fenghua.yu@intel.com, heiko.carstens@de.ibm.com, herbert@gondor.apana.org.au, ink@jurassic.park.msu.ru, jhogan@kernel.org, linux@armlinux.org.uk, mark.rutland@arm.com, mattst88@gmail.com, mingo@kernel.org, mpe@ellerman.id.au, palmer@sifive.com, paul.burton@mips.com, paulus@samba.org, ralf@linux-mips.org, rth@twiddle.net, stable@vger.kernel.org, tglx@linutronix.de, tony.luck@intel.com, vgupta@synopsys.com Subject: [PATCH 17/18] locking/atomic: crypto: nx: remove redundant casts Date: Wed, 22 May 2019 14:22:49 +0100 Message-Id: <20190522132250.26499-18-mark.rutland@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190522132250.26499-1-mark.rutland@arm.com> References: <20190522132250.26499-1-mark.rutland@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that atomic64_read() returns s64 consistently, we don't need to explicitly cast its return value. Drop the redundant casts. Signed-off-by: Mark Rutland Cc: Herbert Xu Cc: Peter Zijlstra Cc: Will Deacon --- drivers/crypto/nx/nx-842-pseries.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.11.0 diff --git a/drivers/crypto/nx/nx-842-pseries.c b/drivers/crypto/nx/nx-842-pseries.c index 9432e9e42afe..5cf77729a438 100644 --- a/drivers/crypto/nx/nx-842-pseries.c +++ b/drivers/crypto/nx/nx-842-pseries.c @@ -870,7 +870,7 @@ static ssize_t nx842_##_name##_show(struct device *dev, \ local_devdata = rcu_dereference(devdata); \ if (local_devdata) \ p = snprintf(buf, PAGE_SIZE, "%lld\n", \ - (s64)atomic64_read(&local_devdata->counters->_name)); \ + atomic64_read(&local_devdata->counters->_name)); \ rcu_read_unlock(); \ return p; \ } @@ -924,7 +924,7 @@ static ssize_t nx842_timehist_show(struct device *dev, for (i = 0; i < (NX842_HIST_SLOTS - 2); i++) { bytes = snprintf(p, bytes_remain, "%u-%uus:\t%lld\n", i ? (2<<(i-1)) : 0, (2<