Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp386047yba; Thu, 18 Apr 2019 03:02:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqzQyds7hTAgpvA28+HsT8i/O+g21kxk8sZyMeK7cJKP0BYIg1hTP4S5f8ELC8yJm3buo/30 X-Received: by 2002:a62:1647:: with SMTP id 68mr33060961pfw.113.1555581745931; Thu, 18 Apr 2019 03:02:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555581745; cv=none; d=google.com; s=arc-20160816; b=ZBxxgDVLY1heIAZHzqU3bmNP/O6LbHdkyWsJv98Psy5ywFAOVbqgk03b/uRsFc6tgT JtMSDPH1I9d+N9+qpGssur8nY8p5pKK8z/ZhYZQXeK6+1Fm/7EUrQ+Z8aODPI6RIXu3C gKN2ivF+nGQ7dsJ0fPVCU8SAFRP80EyWEqng1yOX0EyW9voa74Xg4r942aUDH1AWxPEG LLtvATRCzY67/S01PIyDHZ5IoMR3B37lRoHywiDnL0dqdbvzqkCG5MCv7kuTlcx7oKQl bGerhkR6NQcJzdJTdHxOnXSyqVZviLVuvjyBDERbwVk62GbsdjS88maO7P4UstVNOvg0 763g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=077jgKF/V2VvYwBhIxbW8sziSxAVlpGv4zc2NXqAdWw=; b=hBkQCYPLfXbvr4u+irZRxdmMqsP7mjjDqdF1p4kq8rYSjrEKxlihRSIj8GHEKA+D2G LqpxjBvKhto6WRH0PW8b5R613qhbjIrF0WVFdNm28xXXcEzuczZxNhgNA2no0LAbSdQu IavleHB+X1BdGPDmVJdMtIMvSCsprQGEeyzOhEhq7VdtB9u3XLmflIWgJ9FoS12cPeym Hu2KS0XaHTQGRh7SLgUW4ENqK3horzQblVdI9VwIw3vAD8u2pJjsrdOPhTmSIwR5SPX6 YoxTBNjwqXdo4e143z/3mH0Gir7Rb1dxpHlZ0T7y7uz8BtiQ8Up0dEZ9wb/dtLd3sH/l 6CpQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j62si1485182pgd.87.2019.04.18.03.02.09; Thu, 18 Apr 2019 03:02:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388656AbfDRKBD (ORCPT + 99 others); Thu, 18 Apr 2019 06:01:03 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:52783 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388577AbfDRKBC (ORCPT ); Thu, 18 Apr 2019 06:01:02 -0400 Received: from localhost (alyon-652-1-176-226.w109-212.abo.wanadoo.fr [109.212.207.226]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 05B7C20001D; Thu, 18 Apr 2019 10:00:56 +0000 (UTC) From: Alexandre Belloni To: linux-rtc@vger.kernel.org Cc: Paul Cercueil , Mathieu Malaterre , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Alexandre Belloni Subject: [PATCH 3/7] rtc: jz4740: remove useless check Date: Thu, 18 Apr 2019 12:00:41 +0200 Message-Id: <20190418100045.29288-3-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190418100045.29288-1-alexandre.belloni@bootlin.com> References: <20190418100045.29288-1-alexandre.belloni@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org rtc_time64_to_tm always returns a valid tm, it is not necessary to validate it. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-jz4740.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-jz4740.c b/drivers/rtc/rtc-jz4740.c index 15b6832f3931..a7e1a382cac5 100644 --- a/drivers/rtc/rtc-jz4740.c +++ b/drivers/rtc/rtc-jz4740.c @@ -198,7 +198,7 @@ static int jz4740_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm) rtc_time64_to_tm(secs, &alrm->time); - return rtc_valid_tm(&alrm->time); + return 0; } static int jz4740_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) -- 2.20.1