Message ID | 1424005785-17865-4-git-send-email-xlpang@126.com |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCN6JTVP2IEBBONWQKTQKGQED7CRHPA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f69.google.com (mail-ee0-f69.google.com [74.125.83.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3D4DD21533 for <linaro@patches.linaro.org>; Sun, 15 Feb 2015 13:12:26 +0000 (UTC) Received: by mail-ee0-f69.google.com with SMTP id b15sf17031376eek.0 for <linaro@patches.linaro.org>; Sun, 15 Feb 2015 05:12:25 -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+jcbFguxC8JpJInl8awue3Ztw1YYtm4y8Xp0gACflk=; b=An4msjmI2ILANEWRUclp3tIt5GiZI0Diu/B8ZFPoWzUikCwz1kLwkqadaHunYVItoE xfRdWsyejPh+EZ8+x4Bza1rIrAPtopMTF9t9Pn4p+49TCTGmHsiX+6BGeN6ScR/NOjEo tw5HrB1UwGo033sfZPO7ih72fUVc9YetIh24l6kiSjXs+WGFT6re2mmq7d18MHBs6YLN r/B1TVPWCwPxLsSIqk2ZwbkDlJsAJaaUIYqdxPNW2SSFX7lEiI8VoAbGZ8hYQUYkoWxW l9YGnEdrLapigCtdMbdsuZQLUGFfxNvvfPGNNsI+nzJISR6fV1PcmuA5KZktdbMWQMds 6Wdg== X-Gm-Message-State: ALoCoQnN3jHWkEVkz07dKfz0pPtgHSc2W+YfbBAnax9mLX7XhS2nDdjl70f2Uc3upiHKVqEhD4z6 X-Received: by 10.181.13.236 with SMTP id fb12mr2223309wid.1.1424005945446; Sun, 15 Feb 2015 05:12:25 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.45.68 with SMTP id k4ls430147lam.85.gmail; Sun, 15 Feb 2015 05:12:25 -0800 (PST) X-Received: by 10.112.225.137 with SMTP id rk9mr16654885lbc.11.1424005945223; Sun, 15 Feb 2015 05:12:25 -0800 (PST) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id n20si4316072lbl.99.2015.02.15.05.12.25 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Feb 2015 05:12:25 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by lamq1 with SMTP id q1so23913392lam.5 for <patchwork-forward@linaro.org>; Sun, 15 Feb 2015 05:12:25 -0800 (PST) X-Received: by 10.112.171.168 with SMTP id av8mr17312653lbc.88.1424005944937; Sun, 15 Feb 2015 05:12:24 -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 h5csp1038510lbj; Sun, 15 Feb 2015 05:12:24 -0800 (PST) X-Received: by 10.70.46.65 with SMTP id t1mr294307pdm.128.1424005942840; Sun, 15 Feb 2015 05:12:22 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sy7si1742078pbc.64.2015.02.15.05.12.21; Sun, 15 Feb 2015 05:12:22 -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 S1754959AbbBONMM (ORCPT <rfc822;ivan.khoronzhuk@linaro.org> + 28 others); Sun, 15 Feb 2015 08:12:12 -0500 Received: from m50-110.126.com ([123.125.50.110]:48896 "EHLO m50-110.126.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754734AbbBONMJ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 15 Feb 2015 08:12:09 -0500 Received: from localhost.localdomain (unknown [210.21.223.3]) by smtp4 (Coremail) with SMTP id jdKowABXINyomuBUw_mjCw--.246S5; Sun, 15 Feb 2015 21:10:12 +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>, Peter Zijlstra <peterz@infradead.org>, Xunlei Pang <pang.xunlei@linaro.org> Subject: [PATCH v4 4/4] rtc: Remove redundant rtc_valid_tm() from rtc_resume() Date: Sun, 15 Feb 2015 21:09:45 +0800 Message-Id: <1424005785-17865-4-git-send-email-xlpang@126.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1424005785-17865-1-git-send-email-xlpang@126.com> References: <1424005785-17865-1-git-send-email-xlpang@126.com> X-CM-TRANSID: jdKowABXINyomuBUw_mjCw--.246S5 X-Coremail-Antispam: 1Uf129KBjvdXoWrtr1rtr18JryfWryDZF1fZwb_yoWxCrXEkF n7Xr1fG3Wq93WDAw17Jay0yry0vF129F48Za40gayfZFW2vr1xXFW8Ar4UJwn8ur48G3Z0 kF4jkry0kr10gjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUnUCztUUUUU== X-Originating-IP: [210.21.223.3] X-CM-SenderInfo: p0ost0bj6rjloofrz/1tbijBOhv1GfUC97NwABs9 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 209.85.215.52 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 74a943e..c29ba7e 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;