Message ID | 1421772090-13113-2-git-send-email-pang.xunlei@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDP5TRNE3AARBY4K7KSQKGQECAWUF7Q@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3FFD72034D for <linaro@patches.linaro.org>; Tue, 20 Jan 2015 16:42:12 +0000 (UTC) Received: by mail-wi0-f199.google.com with SMTP id r20sf7164228wiv.2 for <linaro@patches.linaro.org>; Tue, 20 Jan 2015 08:42:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=qHwAtOMsLqOvdfLEndxO/eCQYil0UKMq8GwolH0fNgs=; b=mmqGx8GvF5Mi5gSxu4mP79rUygUVvBYSgYOGwYUR7FcYNbrcaLHNv3jqOe1UuHrdVK J5o90hiq84k1L0XQOeKr4ceBmh7+g0RGaZzwU+f41KCykKdpQmvt0VuJ9J56SE/YaqLu xb1Ms/63abynSdMKD7Hbm8uVPC6RH+bOjWpv5mKetmr22qCSoVzFj41Qwkp80dNf5kQC iOTxHLu5EPbjL4sz/YOvwuvY1oVZMrAHDTwDZ8otPvyQWy/hlt6TaUYRCoJy13wcXsYp puE1BEFQVQsYHy23rm40AdeDu4ix2r4Hy5Ms2M3r01EPyELahbzuxyZ2cf9W42naEKJ4 Nx4w== X-Gm-Message-State: ALoCoQnb/V7P2iq0SRWYd/95aRXERsKP3CfHM6ZTkPomVJAQjNnTAwDtTj46e2Ma11Nvggi/rcE/ X-Received: by 10.180.92.66 with SMTP id ck2mr2771894wib.3.1421772131563; Tue, 20 Jan 2015 08:42:11 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.10.197 with SMTP id k5ls498500lab.77.gmail; Tue, 20 Jan 2015 08:42:11 -0800 (PST) X-Received: by 10.112.150.98 with SMTP id uh2mr3270653lbb.92.1421772131369; Tue, 20 Jan 2015 08:42:11 -0800 (PST) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id ka7si15708450lbc.37.2015.01.20.08.42.11 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 20 Jan 2015 08:42:11 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by mail-lb0-f178.google.com with SMTP id u10so3995762lbd.9 for <patchwork-forward@linaro.org>; Tue, 20 Jan 2015 08:42:11 -0800 (PST) X-Received: by 10.152.5.226 with SMTP id v2mr39597539lav.34.1421772131271; Tue, 20 Jan 2015 08:42:11 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.9.200 with SMTP id c8csp1479423lbb; Tue, 20 Jan 2015 08:42:10 -0800 (PST) X-Received: by 10.68.57.168 with SMTP id j8mr34523419pbq.160.1421772129413; Tue, 20 Jan 2015 08:42:09 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id dz5si5442802pab.102.2015.01.20.08.42.05; Tue, 20 Jan 2015 08:42:09 -0800 (PST) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754830AbbATQlt (ORCPT <rfc822;hanjun.guo@linaro.org> + 28 others); Tue, 20 Jan 2015 11:41:49 -0500 Received: from mail-ie0-f176.google.com ([209.85.223.176]:47571 "EHLO mail-ie0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754448AbbATQlp (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 20 Jan 2015 11:41:45 -0500 Received: by mail-ie0-f176.google.com with SMTP id rd18so8797141iec.7 for <linux-kernel@vger.kernel.org>; Tue, 20 Jan 2015 08:41:45 -0800 (PST) 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: [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> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: pang.xunlei@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/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(-)