Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp473550ybm; Wed, 22 May 2019 06:28:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqwplgyqHUtPhvWnNqwR4vra6WRZCgF0n1GvJy3uVEFwVH5bnI5jjwwdTvW1A/5rCQguyL18 X-Received: by 2002:a65:52c3:: with SMTP id z3mr37513182pgp.56.1558531715331; Wed, 22 May 2019 06:28:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558531715; cv=none; d=google.com; s=arc-20160816; b=G6r82e9LI11fq5suBKQvikXR4KjgjW+WKj5I5TbnoCpYMCifadrYyci9yyd5qqM/is Qu1w5HNDDYOVxQKABKsCjm6pCK4j0SY8X1YOuroKUu+yqOnySSY5K7aLaVo8O/EOUivb J+w3Tyk6ePe92Akax7idnlC/1QQyIS3woIsRZw/skwktqbJ0X6sE6aZuV4m4HY1ZsjGy 3fZmblCOFOnBIfGJOXGLtC3SmtKRlfO2uxhIYQwx4HqKgN5Y0DY5Ol5Y9z/7euUNZieP 4z7X7TKaYZMxkD7JjsT3rjbovGzcI92I4f/onWPJPhpD0sf7Nq1TqNmD8SIEK9s6AQax EKpg== 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 a66si29379738pfb.210.2019.05.22.06.28.19; Wed, 22 May 2019 06:28:35 -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 S1729741AbfEVNZo (ORCPT + 99 others); Wed, 22 May 2019 09:25:44 -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(-) 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<