Message ID | 1422547147-3073-2-git-send-email-xlpang@126.com |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCN6JTVP2IEBBMNWVGTAKGQETT6IPQA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 28A4E2410D for <linaro@patches.linaro.org>; Thu, 29 Jan 2015 16:09:22 +0000 (UTC) Received: by mail-lb0-f199.google.com with SMTP id f15sf542238lbj.2 for <linaro@patches.linaro.org>; Thu, 29 Jan 2015 08:09:21 -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=E+C0raAG1YTY/AAis5xrspaku2t74xSa+X/ER5bUE0Y=; b=I93UobMj2tOlqnLs0Dlr5D2XPlgm9AYFrYSOPi6K+7GzHIuJH4o91quR1mr+CNCadl AM/LKwE09O4u3bsiuNEn5D1lJAxnL0sC4LQQUQu6Sfx72S1voNzCGPqFX3EVm6DXjvSC Nv0R3xbNfhatpycN8u8dPd+hP8Oytv7mex/W9UwqTLjI4jqXDDP5OLjnXRlUGhu4GdwE cn2lyhdT/N9xH5bhyTl57vRMA05045V9xtViEiSX68AUqZCL6jSdzTHc90H7FXkVdjha krFlr6XFkSLlJH3s6GNJr3wLrYi3Gj8B3c67eW+iz1HvubeGSjvRTtSrCS+IIglbjXEl SqJg== X-Gm-Message-State: ALoCoQkJdDPkBeq6DB2AKJXV6Psv0k9neUNU2nxX6Y2jcW2lxlEF0rHcuD7NlwS1SlEEnrSlTpBl X-Received: by 10.152.26.74 with SMTP id j10mr214644lag.10.1422547761152; Thu, 29 Jan 2015 08:09:21 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.179.67 with SMTP id de3ls323820lac.60.gmail; Thu, 29 Jan 2015 08:09:20 -0800 (PST) X-Received: by 10.152.88.44 with SMTP id bd12mr1729166lab.86.1422547760851; Thu, 29 Jan 2015 08:09:20 -0800 (PST) Received: from mail-lb0-x233.google.com (mail-lb0-x233.google.com. [2a00:1450:4010:c04::233]) by mx.google.com with ESMTPS id k8si6450970lbs.115.2015.01.29.08.09.20 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 29 Jan 2015 08:09:20 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::233 as permitted sender) client-ip=2a00:1450:4010:c04::233; Received: by mail-lb0-f179.google.com with SMTP id 10so29713968lbg.10 for <patchwork-forward@linaro.org>; Thu, 29 Jan 2015 08:09:20 -0800 (PST) X-Received: by 10.152.5.226 with SMTP id v2mr1840581lav.34.1422547760698; Thu, 29 Jan 2015 08:09:20 -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.35.133 with SMTP id h5csp1809269lbj; Thu, 29 Jan 2015 08:09:19 -0800 (PST) X-Received: by 10.70.102.176 with SMTP id fp16mr1725572pdb.55.1422547758617; Thu, 29 Jan 2015 08:09:18 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id jf9si10350169pbd.143.2015.01.29.08.09.17; Thu, 29 Jan 2015 08:09:18 -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 S1754190AbbA2QJO (ORCPT <rfc822;ivan.khoronzhuk@linaro.org> + 29 others); Thu, 29 Jan 2015 11:09:14 -0500 Received: from m50-111.126.com ([123.125.50.111]:48678 "EHLO m50-111.126.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752035AbbA2QJM (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 29 Jan 2015 11:09:12 -0500 Received: from localhost.localdomain (unknown [210.21.223.3]) by smtp5 (Coremail) with SMTP id jtKowAAnFg_qWMpUTaANDQ--.1799S3; Thu, 29 Jan 2015 23:59:54 +0800 (CST) From: Xunlei Pang <xlpang@126.com> 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: [PATCH v3 2/2] rtc: Remove redundant rtc_valid_tm() from rtc_resume() Date: Thu, 29 Jan 2015 23:59:07 +0800 Message-Id: <1422547147-3073-2-git-send-email-xlpang@126.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1422547147-3073-1-git-send-email-xlpang@126.com> References: <1422547147-3073-1-git-send-email-xlpang@126.com> X-CM-TRANSID: jtKowAAnFg_qWMpUTaANDQ--.1799S3 X-Coremail-Antispam: 1Uf129KBjvdXoWrtr1ruw4rZFWUCFyDCw18Grg_yoWxCrXEkF 1xXryfW3Wq93WDAw17Gay0yry0vF43ZF48Za48KayfZFW2vr1xXFWkAr4UJwn8ur48GFn0 yF4jkry0kr10gjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU0Qo7tUUUUU== X-Originating-IP: [210.21.223.3] X-CM-SenderInfo: p0ost0bj6rjloofrz/1tbi7xqQv00va+IicgAAsh Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Original-Sender: xlpang@126.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::233 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (body hash did not verify) header.i=@; dmarc=fail (p=NONE dis=NONE) header.from=126.com 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 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;