From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753274AbbDCIUb (ORCPT ); Fri, 3 Apr 2015 04:20:31 -0400 Received: from terminus.zytor.com ([198.137.202.10]:44753 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751863AbbDCIU0 (ORCPT ); Fri, 3 Apr 2015 04:20:26 -0400 Date: Fri, 3 Apr 2015 01:19:55 -0700 From: tip-bot for Xunlei Pang Message-ID: Cc: john.stultz@linaro.org, peterz@infradead.org, linux-kernel@vger.kernel.org, mingo@kernel.org, hpa@zytor.com, tglx@linutronix.de, pang.xunlei@linaro.org Reply-To: hpa@zytor.com, linux-kernel@vger.kernel.org, mingo@kernel.org, peterz@infradead.org, john.stultz@linaro.org, pang.xunlei@linaro.org, tglx@linutronix.de In-Reply-To: <1427945681-29972-17-git-send-email-john.stultz@linaro.org> References: <1427945681-29972-17-git-send-email-john.stultz@linaro.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:timers/core] drivers/rtc: Remove redundant rtc_valid_tm() from rtc_resume() Git-Commit-ID: 814dcf8ead04f5ebcec74af06c705b207887f0fa 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 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 814dcf8ead04f5ebcec74af06c705b207887f0fa Gitweb: http://git.kernel.org/tip/814dcf8ead04f5ebcec74af06c705b207887f0fa Author: Xunlei Pang AuthorDate: Wed, 1 Apr 2015 20:34:36 -0700 Committer: Ingo Molnar CommitDate: Fri, 3 Apr 2015 08:18:32 +0200 drivers/rtc: Remove redundant rtc_valid_tm() from rtc_resume() rtc_read_time() has already judged valid tm by rtc_valid_tm(), so just remove it. Signed-off-by: Xunlei Pang Signed-off-by: John Stultz Cc: Peter Zijlstra Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/1427945681-29972-17-git-send-email-john.stultz@linaro.org Signed-off-by: Ingo Molnar --- drivers/rtc/class.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/rtc/class.c b/drivers/rtc/class.c index 472a5ad..d40760a 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;