Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5188874ybl; Tue, 14 Jan 2020 05:06:29 -0800 (PST) X-Google-Smtp-Source: APXvYqxc4peiZgtk0jZzAFw1fQ0ePhBe7OVLWH+qe5s6kRDn6uOeBUfi7xKVFV52EzrYEWiaas5Z X-Received: by 2002:a05:6830:1555:: with SMTP id l21mr15584514otp.41.1579007188989; Tue, 14 Jan 2020 05:06:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579007188; cv=none; d=google.com; s=arc-20160816; b=vrvoj23ZRTHoBjwYF0FJda/hV04/rmi576n0oAp90WqUjGVaSAJ7T82gD2OFn/Q/TR jxuNeGlizr9XcRGx+6q3KVWYRCIBB/+94xYoUciqO0We0kVzAtakJ6h2TvaENIgBR3z8 nN0zssJnX6pTNOJOeoXdmrv06Y8H3kkso9fl1EAB8a4a3mfMN1zwWyjvWtgPgtPPUYHR R+vlNzjt0CCtRNBB8tTcdxJqqpgg+K0Uob6Vc0jUEnFYDm7KJClNsxWiipsbecu3Wum4 DGjHQAKwDxce5rZtVb4bCIt+FwJ3NxMqO3naLVnqDeubDbIXJ5N0GBZ3DbOFOiEy/G0Y 42Sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=9UKV3oPyq/V2UaI9NAhTbOic82MBbcz3gXSZ3iyippg=; b=OJxmE17RDXMIg9hbnCU3B+haGZABzCnh162qqG8JzouzrYgpCky2WnBMenX0hI5mNg rq+4r8YA4F3yjPqzLvTds3gUx58RKwjltaHG8C1XJfHCXA96Meohq+b1J3fXktawghBI 8gXjKP1rzF6ruZgrSRdD9V/1HYgJ/Y3y7yQBOEWOFmnBLO6O7JdP3mP2wWwKgZZINqtr PMa/ZPM6PiRf+j2yg0aOEecPRkF3zKhNyTc1f9ZE144dnj5X2TcHnBET9dlZmWtfIPay uHfChiP3ugCLRrT3O4FcPbI8U3OeQT55DmXycJg69wgCB/ZP0RIiDNF6Xen6nFN0iQBG b08Q== 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 s74si7393951oie.109.2020.01.14.05.06.09; Tue, 14 Jan 2020 05:06:28 -0800 (PST) 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 S1729327AbgANND1 (ORCPT + 99 others); Tue, 14 Jan 2020 08:03:27 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:43263 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729033AbgANNCn (ORCPT ); Tue, 14 Jan 2020 08:02:43 -0500 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1irLqB-0004qK-Hl; Tue, 14 Jan 2020 14:02:39 +0100 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 858EB1C0858; Tue, 14 Jan 2020 14:02:23 +0100 (CET) Date: Tue, 14 Jan 2020 13:02:23 -0000 From: "tip-bot2 for Vincenzo Frascino" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] lib/vdso: Remove checks on return value for 32 bit vDSO Cc: Vincenzo Frascino , Thomas Gleixner , x86 , LKML In-Reply-To: <20190830135902.20861-6-vincenzo.frascino@arm.com> References: <20190830135902.20861-6-vincenzo.frascino@arm.com> MIME-Version: 1.0 Message-ID: <157900694338.396.7563018599066002360.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the timers/core branch of tip: Commit-ID: a279235ddbe975670afe2267162028ec0a312293 Gitweb: https://git.kernel.org/tip/a279235ddbe975670afe2267162028ec0a312293 Author: Vincenzo Frascino AuthorDate: Fri, 30 Aug 2019 14:58:59 +01:00 Committer: Thomas Gleixner CommitterDate: Tue, 14 Jan 2020 12:20:45 +01:00 lib/vdso: Remove checks on return value for 32 bit vDSO Since all the architectures that support the generic vDSO library have been converted to support the 32 bit fallbacks it is not required anymore to check the return value of __cvdso_clock_get*time32_common() before updating the old_timespec fields. Remove the related checks from the generic vdso library. References: c60a32ea4f45 ("lib/vdso/32: Provide legacy syscall fallbacks") Signed-off-by: Vincenzo Frascino Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/20190830135902.20861-6-vincenzo.frascino@arm.com --- lib/vdso/gettimeofday.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/vdso/gettimeofday.c b/lib/vdso/gettimeofday.c index cd3aacf..b676a98 100644 --- a/lib/vdso/gettimeofday.c +++ b/lib/vdso/gettimeofday.c @@ -129,10 +129,10 @@ __cvdso_clock_gettime32(clockid_t clock, struct old_timespec32 *res) if (unlikely(ret)) return clock_gettime32_fallback(clock, res); - if (likely(!ret)) { - res->tv_sec = ts.tv_sec; - res->tv_nsec = ts.tv_nsec; - } + /* For ret == 0 */ + res->tv_sec = ts.tv_sec; + res->tv_nsec = ts.tv_nsec; + return ret; } #endif /* BUILD_VDSO32 */ @@ -240,7 +240,7 @@ __cvdso_clock_getres_time32(clockid_t clock, struct old_timespec32 *res) if (unlikely(ret)) return clock_getres32_fallback(clock, res); - if (likely(!ret && res)) { + if (likely(res)) { res->tv_sec = ts.tv_sec; res->tv_nsec = ts.tv_nsec; }