Message ID | 1421772090-13113-2-git-send-email-pang.xunlei@linaro.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <rtc-linux+bncBDP5TRNE3AARBS4K7KSQKGQELGFMSDA@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-pa0-x23c.google.com (mail-pa0-x23c.google.com [IPv6:2607:f8b0:400e:c03::23c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 1EAC01401AF for <incoming@patchwork.ozlabs.org>; Wed, 21 Jan 2015 03:41:49 +1100 (AEDT) Received: by mail-pa0-f60.google.com with SMTP id rd3sf5982314pab.5 for <incoming@patchwork.ozlabs.org>; Tue, 20 Jan 2015 08:41:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :reply-to:content-type:precedence:mailing-list:list-id:list-post :list-help:list-archive:sender:list-subscribe:list-unsubscribe; bh=nPBB2u45AjlxGrdVKD9fGEuUKhrRHkHr4pCoiTzUCDM=; b=ZLjsw6hr4uj2TtWidQZg2adcCqkg9i8woQouLX2MH1PHYvSxemczBZWgckT/mzM8fK Dwnego1l4bkJ3fIM9huoihzvoviV4nKj+h0Y2xDlRClivDAmthlFfHQQ9aojuWBrjV9b 5e/Q9266EfDwYXNLaMdykTQv5aiKchL9+NwtU/TAqKZiQsbwy9znWKIQyan3KJGiDgtO FdIEa4+f3ao+QyiSW4IPZ/4wDq5uij2k1aFzSZkUSQ9Rbm4pehd2XHMjFxeLfstXWFXf P0NmIMw/8Hv4cJyq6H8HmsXZiNwbW4fO6byO2ZCL0e7ofNtVn+e18TenBHgjdZi/OXjA ntbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:x-original-sender :x-original-authentication-results:reply-to:content-type:precedence :mailing-list:list-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe; bh=nPBB2u45AjlxGrdVKD9fGEuUKhrRHkHr4pCoiTzUCDM=; b=V0RTt3QovUiYIo1Yh3ZPo/3Io4SrRTrdAKYxQqNqPQnK73RJV8Yrn76FQ0wiUTSV1T ei6Eqsr6/k2IgoHn5nphGKi+AFk1+/rq+Uqf/LsXNtf7l+1L1hMOVz41YLM4vaDRug9a UD+Bc4cVxe46o9UTDy1Ic5GSSEpxkNeoEfZfZALoQmVV9qmkZBNuRJwVFxa3yigXxSx3 GcfbuiOJE1z+p9GaskEKhRuPBp96ZOPOcMDiC2H6x/p4GVIjBVHhjenjBHmPLZTw73VD w/ILsjMg5PCg3FFIeZGki1S5v/4wQAhn4Su+kUgP71+LxKvBdhXcubTz3A0QkQzzHi8Z GttA== X-Received: by 10.50.110.101 with SMTP id hz5mr359984igb.6.1421772107734; Tue, 20 Jan 2015 08:41:47 -0800 (PST) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.79.168 with SMTP id k8ls1924970igx.16.canary; Tue, 20 Jan 2015 08:41:45 -0800 (PST) X-Received: by 10.43.99.202 with SMTP id ct10mr29377912icc.29.1421772105029; Tue, 20 Jan 2015 08:41:45 -0800 (PST) Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com. [209.85.223.182]) by gmr-mx.google.com with ESMTPS id e5si259150igy.2.2015.01.20.08.41.45 for <rtc-linux@googlegroups.com> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 20 Jan 2015 08:41:45 -0800 (PST) Received-SPF: pass (google.com: domain of pang.xunlei@linaro.org designates 209.85.223.182 as permitted sender) client-ip=209.85.223.182; Received: by mail-ie0-f182.google.com with SMTP id ar1so6082979iec.13 for <rtc-linux@googlegroups.com>; Tue, 20 Jan 2015 08:41:44 -0800 (PST) X-Gm-Message-State: ALoCoQlm3dEA0QO5IchQ3+kiL9O+wD70JgQdElg/XNfVJSm6Z00W6xACauOtZx/lSKoPbYIA3Jat X-Received: by 10.50.147.99 with SMTP id tj3mr3947907igb.41.1421772104928; Tue, 20 Jan 2015 08:41:44 -0800 (PST) Received: from ip-10-181-65-231.ec2.internal ([54.235.93.228]) by mx.google.com with ESMTPSA id q7sm3117924igx.9.2015.01.20.08.41.44 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 20 Jan 2015 08:41:44 -0800 (PST) From: Xunlei Pang <pang.xunlei@linaro.org> To: linux-kernel@vger.kernel.org Cc: rtc-linux@googlegroups.com, Thomas Gleixner <tglx@linutronix.de>, Alessandro Zummo <a.zummo@towertech.it>, Feng Tang <feng.tang@intel.com>, John Stultz <john.stultz@linaro.org>, Arnd Bergmann <arnd.bergmann@linaro.org>, Xunlei Pang <pang.xunlei@linaro.org> Subject: [rtc-linux] [PATCH 2/3] rtc: Remove redundant rtc_valid_tm() from rtc_resume() Date: Tue, 20 Jan 2015 16:41:29 +0000 Message-Id: <1421772090-13113-2-git-send-email-pang.xunlei@linaro.org> X-Mailer: git-send-email 2.2.1 In-Reply-To: <1421772090-13113-1-git-send-email-pang.xunlei@linaro.org> References: <1421772090-13113-1-git-send-email-pang.xunlei@linaro.org> X-Original-Sender: pang.xunlei@linaro.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of pang.xunlei@linaro.org designates 209.85.223.182 as permitted sender) smtp.mail=pang.xunlei@linaro.org Reply-To: rtc-linux@googlegroups.com Content-Type: text/plain; charset=UTF-8 Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: <rtc-linux.googlegroups.com> X-Google-Group-Id: 712029733259 List-Post: <http://groups.google.com/group/rtc-linux/post>, <mailto:rtc-linux@googlegroups.com> List-Help: <http://groups.google.com/support/>, <mailto:rtc-linux+help@googlegroups.com> List-Archive: <http://groups.google.com/group/rtc-linux Sender: rtc-linux@googlegroups.com List-Subscribe: <http://groups.google.com/group/rtc-linux/subscribe>, <mailto:rtc-linux+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+712029733259+unsubscribe@googlegroups.com>, <http://groups.google.com/group/rtc-linux/subscribe> |
diff --git a/drivers/rtc/class.c b/drivers/rtc/class.c index c8f35a5..5953225 100644 --- a/drivers/rtc/class.c +++ b/drivers/rtc/class.c @@ -117,10 +117,6 @@ static int rtc_resume(struct device *dev) return 0; } - if (rtc_valid_tm(&tm) != 0) { - pr_debug("%s: bogus resume time\n", dev_name(&rtc->dev)); - return 0; - } new_rtc.tv_sec = rtc_tm_to_time64(&tm); new_rtc.tv_nsec = 0;
rtc_read_time() has already judged valid tm by rtc_valid_tm(), so just remove it. Signed-off-by: Xunlei Pang <pang.xunlei@linaro.org> --- drivers/rtc/class.c | 4 ---- 1 file changed, 4 deletions(-)