From patchwork Thu Jul 8 05:13:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nobuhiro Iwamatsu X-Patchwork-Id: 471623 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 07C41C07E96 for ; Thu, 8 Jul 2021 05:43:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D6E7B61CE2 for ; Thu, 8 Jul 2021 05:43:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229593AbhGHFqe (ORCPT ); Thu, 8 Jul 2021 01:46:34 -0400 Received: from mo-csw-fb1116.securemx.jp ([210.130.202.175]:50928 "EHLO mo-csw-fb.securemx.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229579AbhGHFqe (ORCPT ); Thu, 8 Jul 2021 01:46:34 -0400 X-Greylist: delayed 1820 seconds by postgrey-1.27 at vger.kernel.org; Thu, 08 Jul 2021 01:46:33 EDT Received: by mo-csw-fb.securemx.jp (mx-mo-csw-fb1116) id 1685DXT8023739; Thu, 8 Jul 2021 14:13:33 +0900 Received: by mo-csw.securemx.jp (mx-mo-csw1115) id 1685DAo4001563; Thu, 8 Jul 2021 14:13:11 +0900 X-Iguazu-Qid: 2wGrNQa8eydpfY1mOx X-Iguazu-QSIG: v=2; s=0; t=1625721190; q=2wGrNQa8eydpfY1mOx; m=kxmPnZMPR5n4bLIPn4fKjTMjm4QR7GL5MYqF2vOQ+9k= Received: from imx12-a.toshiba.co.jp (imx12-a.toshiba.co.jp [61.202.160.135]) by relay.securemx.jp (mx-mr1112) id 1685D9hj003880 (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 8 Jul 2021 14:13:09 +0900 Received: from enc02.toshiba.co.jp (enc02.toshiba.co.jp [61.202.160.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by imx12-a.toshiba.co.jp (Postfix) with ESMTPS id D8953100107; Thu, 8 Jul 2021 14:13:08 +0900 (JST) Received: from hop101.toshiba.co.jp ([133.199.85.107]) by enc02.toshiba.co.jp with ESMTP id 1685D8u3003630; Thu, 8 Jul 2021 14:13:08 +0900 From: Nobuhiro Iwamatsu To: Alessandro Zummo , Alexandre Belloni Cc: linux-rtc@vger.kernel.org, Nobuhiro Iwamatsu , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , linux-samsung-soc@vger.kernel.org Subject: [PATCH] rtc: s5m: Check return value of s5m_check_peding_alarm_interrupt() Date: Thu, 8 Jul 2021 14:13:04 +0900 X-TSB-HOP: ON Message-Id: <20210708051304.341278-1-nobuhiro1.iwamatsu@toshiba.co.jp> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org s5m_check_peding_alarm_interrupt() in s5m_rtc_read_alarm() gets the return value, but doesn't use it. This modifies using the s5m_check_peding_alarm_interrupt()"s return value as the s5m_rtc_read_alarm()'s return value. Cc: Krzysztof Kozlowski Cc: Bartlomiej Zolnierkiewicz Cc: linux-samsung-soc@vger.kernel.org Signed-off-by: Nobuhiro Iwamatsu --- drivers/rtc/rtc-s5m.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/rtc/rtc-s5m.c b/drivers/rtc/rtc-s5m.c index 038269a6b08c55..6b56f8eacba6fa 100644 --- a/drivers/rtc/rtc-s5m.c +++ b/drivers/rtc/rtc-s5m.c @@ -488,9 +488,7 @@ static int s5m_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm) dev_dbg(dev, "%s: %ptR(%d)\n", __func__, &alrm->time, alrm->time.tm_wday); - ret = s5m_check_peding_alarm_interrupt(info, alrm); - - return 0; + return s5m_check_peding_alarm_interrupt(info, alrm); } static int s5m_rtc_stop_alarm(struct s5m_rtc_info *info)