Message ID | 1421928077-4698-2-git-send-email-pang.xunlei@linaro.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <rtc-linux+bncBDP5TRNE3AARBUONQOTAKGQEHUT5OQI@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-yh0-x238.google.com (mail-yh0-x238.google.com [IPv6:2607:f8b0:4002:c01::238]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 0A17A140151 for <incoming@patchwork.ozlabs.org>; Thu, 22 Jan 2015 23:02:27 +1100 (AEDT) Received: by mail-yh0-f56.google.com with SMTP id a41sf193901yho.1 for <incoming@patchwork.ozlabs.org>; Thu, 22 Jan 2015 04:02:25 -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=72BliYCtSjrhkBQ3bh9EgcQHAdmyZZvPATbQyIuX5wo=; b=igRdODrMTa4uKQwaSdIsoYXQY6AUSTHRdK3dMQEUGfLygteZIlGZmq7JQy0ZV15g3m 383eDy/NpVd/14VS1drUVqyQ73dzz+p8Y2bxi2BNROJXw3IHlZRPc1JJXyeYDsINEa00 b4RmJUf/OkREtr3TYr8IxpXl+bslL+00SIGCZZeTWTAEJZcIY1YEz5tSmWmiuXPAsGIH 7qHDgEO9Zm6+hQOX4Rq6GmQ0cSK8WVmzuZOcKHnAIH7J02E5/7kr0FVCkdNeRcgHqBmw LFQsc2xXVit1tw+9ZZ1ddmWyDtOFnlvcFZ9zJBBHoZlAj2wJ0rOztBAj7Ve1Cf45TU5A aFag== 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=72BliYCtSjrhkBQ3bh9EgcQHAdmyZZvPATbQyIuX5wo=; b=BAQFMT7Z2Ge5irLbZTGcPOE71DutcwePn60Nm8CPTgGS+t4Q4z6bq5PS5oAmJs/Z15 DYpdnSv/N+fywzsTTKFIqCIVLIOSau1wVXa7C8BKS8oCEl4KPB5scvlnyEWwfQgb8i81 nCCdKQxmFh5xVIgCiHi3qmRPLbp0kuQATxIPO7j2y8iW5QaK5VAvWN8rELA2q4tebUBK CBpXuRYwpCIPVkMPkeO6XWLi8HluyTtSbWys9616iCSgoxDocmGnm3M6ApThVQXmaXv+ p/cdHdqhYHTHiE1IAsigxd9YKSdT3iw4EwAU+0J2xml9FbV+HW2XpBQl/Acpwd76iq9I L2UQ== X-Received: by 10.140.96.202 with SMTP id k68mr15100qge.24.1421928145867; Thu, 22 Jan 2015 04:02:25 -0800 (PST) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.140.83.84 with SMTP id i78ls512131qgd.41.gmail; Thu, 22 Jan 2015 04:02:25 -0800 (PST) X-Received: by 10.236.17.197 with SMTP id j45mr652188yhj.35.1421928145604; Thu, 22 Jan 2015 04:02:25 -0800 (PST) Received: from mail-qg0-f41.google.com (mail-qg0-f41.google.com. [209.85.192.41]) by gmr-mx.google.com with ESMTPS id b3si488411qco.0.2015.01.22.04.02.25 for <rtc-linux@googlegroups.com> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Jan 2015 04:02:25 -0800 (PST) Received-SPF: pass (google.com: domain of pang.xunlei@linaro.org designates 209.85.192.41 as permitted sender) client-ip=209.85.192.41; Received: by mail-qg0-f41.google.com with SMTP id q108so781277qgd.0 for <rtc-linux@googlegroups.com>; Thu, 22 Jan 2015 04:02:25 -0800 (PST) X-Gm-Message-State: ALoCoQmD1rRCpn0Gzhqhk3Q6kT10Glx8EjcKIGETR7G27OVRAt+3cFuXrWKGktHbX3s49SW+g4Ev X-Received: by 10.140.82.136 with SMTP id h8mr1530329qgd.75.1421928145469; Thu, 22 Jan 2015 04:02:25 -0800 (PST) Received: from ip-10-181-65-231.ec2.internal ([54.235.93.228]) by mx.google.com with ESMTPSA id j6sm3012956qga.9.2015.01.22.04.02.24 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 Jan 2015 04:02:24 -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>, John Stultz <john.stultz@linaro.org>, Arnd Bergmann <arnd.bergmann@linaro.org>, Xunlei Pang <pang.xunlei@linaro.org> Subject: [rtc-linux] [PATCH v2 2/3] rtc: Remove redundant rtc_valid_tm() from rtc_resume() Date: Thu, 22 Jan 2015 12:01:16 +0000 Message-Id: <1421928077-4698-2-git-send-email-pang.xunlei@linaro.org> X-Mailer: git-send-email 2.2.1 In-Reply-To: <1421928077-4698-1-git-send-email-pang.xunlei@linaro.org> References: <1421928077-4698-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.192.41 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 6100af5..7db4c90 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(-)