Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4168559ybi; Mon, 3 Jun 2019 06:48:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqz9yD2p5/JSJWfBwPkHfRGOdyS+PSo9LAHzXm7cC9P3gJPT+G4uVPssLQuEEI3gUzHZ/cUB X-Received: by 2002:a17:90a:8408:: with SMTP id j8mr23382490pjn.29.1559569682915; Mon, 03 Jun 2019 06:48:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559569682; cv=none; d=google.com; s=arc-20160816; b=eQb1YkGwRPU5208T6yi2YPStycOOmFQfRcP6YHFkHQmrnPmtRKsQMEivYbxbywZqHY zEyTBBjRV7jp1RstZAJNJvK01kvgeRZTW3lsj3HB9S/lduXnot0wWIM8Jfg6bBfLNOmr 7DQUxDhRj2jnAvXEr7kKrji3lpAgnFtEL+gtegrFtBPhAOr8YPtgj6rYc7GuAT5xdkUL Ri9SlHZ/OuhL0yvVDHgyLNO1nCt5MzB4Pv676zZtd4xr7Guda3eheOduFs9UBdB9gOIl uRSpEnGnJ2pCl7U9AzumZ8pX4d8TzqLjVzytZ8M2nTCRyqXMTiqD0Y3DefhL455hpYA2 W8jQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:dkim-signature:dkim-filter; bh=tnCa0VNVmlfW+3+oVVEvRCh2gYklefe4IzvWiy7w82I=; b=HhCUbNckIjGQbV/vXHj28KYzu9Igwu33mOf52AVHgtuOaPB88Op9PHwk1Gg6djZ8wl uWnKKvRZ/889rT2NYFt2dsuXfpGb5H3ihk3tg4KmOEZja+2u56BoUZIjtBIdHG5VFkIS UpOnTdu4glLpqh/l0M8Ve9EPtLTyOknUlyjIrewiWE6b6BywGZcBje3nyTGvO6CS1f9b WKRxuKT23rG5K//HcqMJAN8sBpKcGzNCp8763a8HVZYZHyl1hEVoON1w+jcyLVCg2cic 0CSaBHOskhGxKY9bG4ZbecZnLGLt8CtA2OmE9DZusnA2aptMyd+sY0/NINfyedfsOGiE jK+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2019051801 header.b=ldQ+tNgW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w2si3390747pgr.396.2019.06.03.06.47.44; Mon, 03 Jun 2019 06:48:02 -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; dkim=pass header.i=@zytor.com header.s=2019051801 header.b=ldQ+tNgW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728570AbfFCNpo (ORCPT + 99 others); Mon, 3 Jun 2019 09:45:44 -0400 Received: from terminus.zytor.com ([198.137.202.136]:60429 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726780AbfFCNpn (ORCPT ); Mon, 3 Jun 2019 09:45:43 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x53DjSoC614326 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 3 Jun 2019 06:45:28 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 terminus.zytor.com x53DjSoC614326 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019051801; t=1559569529; bh=tnCa0VNVmlfW+3+oVVEvRCh2gYklefe4IzvWiy7w82I=; h=Date:From:Cc:Reply-To:In-Reply-To:References:To:Subject:From; b=ldQ+tNgWM49Lkd8CRRvzxke/pJSmKJw6fr3w5/qXux2TgASUBQOLt6o1VJzyg+WrH 7xdHWFwZukoFrpDwGULztoICZdpxvV2kOq+vjg7DpRsMslVddG2YNy8wndHCOAgLlo 07yNzXRI1FMA4NT25vJMzPD8q7N05Ch68KLgtMZ3+3RklRj3hsiaNoOa7k4EkAPpQB bU3Xvh9pfCPHzyX/1cNyDQTRDqZT50pJZpzacsodDitQolQdGcgqHthxGyweaiuv1c 53TQS4UtraZbAczEcsueT0BYPTqIRwKgAQnVnYDcJA2pjQenoIXZvVFbpdaY4qtROj GH9rDBZcg1TQA== Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x53DjRiw614323; Mon, 3 Jun 2019 06:45:27 -0700 Date: Mon, 3 Jun 2019 06:45:27 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Mark Rutland Message-ID: Cc: torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, mingo@kernel.org, tglx@linutronix.de, herbert@gondor.apana.org.au, will.deacon@arm.com, peterz@infradead.org, mark.rutland@arm.com, hpa@zytor.com Reply-To: mark.rutland@arm.com, hpa@zytor.com, herbert@gondor.apana.org.au, peterz@infradead.org, will.deacon@arm.com, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, mingo@kernel.org, tglx@linutronix.de In-Reply-To: <20190522132250.26499-18-mark.rutland@arm.com> References: <20190522132250.26499-18-mark.rutland@arm.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:locking/core] locking/atomic, crypto/nx: Remove redundant casts Git-Commit-ID: 2af7a0f91c3a645ec9f1cd68e41472021746db35 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.4 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_96_Q,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 2af7a0f91c3a645ec9f1cd68e41472021746db35 Gitweb: https://git.kernel.org/tip/2af7a0f91c3a645ec9f1cd68e41472021746db35 Author: Mark Rutland AuthorDate: Wed, 22 May 2019 14:22:49 +0100 Committer: Ingo Molnar CommitDate: Mon, 3 Jun 2019 12:32:57 +0200 locking/atomic, crypto/nx: Remove redundant casts 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 Signed-off-by: Peter Zijlstra (Intel) Cc: Herbert Xu Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Will Deacon Cc: aou@eecs.berkeley.edu Cc: arnd@arndb.de Cc: bp@alien8.de Cc: catalin.marinas@arm.com Cc: davem@davemloft.net Cc: fenghua.yu@intel.com Cc: heiko.carstens@de.ibm.com Cc: ink@jurassic.park.msu.ru Cc: jhogan@kernel.org Cc: linux@armlinux.org.uk Cc: mattst88@gmail.com Cc: mpe@ellerman.id.au Cc: palmer@sifive.com Cc: paul.burton@mips.com Cc: paulus@samba.org Cc: ralf@linux-mips.org Cc: rth@twiddle.net Cc: tony.luck@intel.com Cc: vgupta@synopsys.com Link: https://lkml.kernel.org/r/20190522132250.26499-18-mark.rutland@arm.com Signed-off-by: Ingo Molnar --- 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 938332ce3b60..2de5e3672e42 100644 --- a/drivers/crypto/nx/nx-842-pseries.c +++ b/drivers/crypto/nx/nx-842-pseries.c @@ -857,7 +857,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; \ } @@ -911,7 +911,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<