Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1419372pxk; Mon, 31 Aug 2020 20:05:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4knNXGdMC0rgOfI94MLGET//Lzas4ivoucavAsGbC403SJcTwqcUVFOSmhwKpVdc8G9YW X-Received: by 2002:a17:906:54e:: with SMTP id k14mr3596985eja.59.1598929502165; Mon, 31 Aug 2020 20:05:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598929502; cv=none; d=google.com; s=arc-20160816; b=tqI8lpsnoaDokaSe0oXl7m/IbhApSMuw698Pl6AJNpx+kVPe6EKpdXCszmqfzeTfGo 72WiahpUJBeOV3x1PFpgh4ZZG8sthDcLk+83CpoEhaHOi+X34g3lfBDd45NVY4l4RI/1 jK+E0X+59MIdkIuD8JOP/daKxhkeUeQyTtAmtC1TlWVsWff+mReRW7WesZHbpxxr1EaN E9/Hwb+N3ItS+7Lre5+3r0lLuzwyYinM3JDFIWom76Z0A60a5YLM3qfAkmvFvHnbpl/d TdzgchDwSUJLJsCpV9p8L6Da+nPG35w6wm/EksPiZRzshq+90gdGpt5HFfFJSdWbJfwF EaZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=vpz4jHBMu9XUOAJI4YXUW8J2MddSW1z12zHIjQSzjA8=; b=x0FetJn8uMCjOVoIb59PzkZPyo9Mt8lG7b6Ho/0UKt3HeIP7UXqrAHD5ux3/BIxAf9 lF6yjJFWS0TteHGt1URXeKIHKmRcuY99nK1T9ImtQDrU8DuyarY4FWrxhvfAvnLsgKh8 thxP+uwerG1H2lVJnRexFAyxE4RLx0RIuBxX7mm1ouUkhFYuY83FmGgKDTOqa8TYlgNw 5cbM0moh8GlDyALKqPhTBQhBPTn+hcQ7c++X1eH/gdsXEiIIeDY9VSR1a2PP3H3FUFTQ DcBrjxSQaFqtkAj3VPaCwyzuayKQrmGjf6hZZyubyIAjCUO0bnjDqR/n+jFNW56SjeMw HR8A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j20si343015edt.233.2020.08.31.20.04.39; Mon, 31 Aug 2020 20:05:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726355AbgIADBg (ORCPT + 99 others); Mon, 31 Aug 2020 23:01:36 -0400 Received: from smtp.h3c.com ([60.191.123.56]:37530 "EHLO h3cspam01-ex.h3c.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726301AbgIADBg (ORCPT ); Mon, 31 Aug 2020 23:01:36 -0400 Received: from DAG2EX03-BASE.srv.huawei-3com.com ([10.8.0.66]) by h3cspam01-ex.h3c.com with ESMTPS id 08130va1020900 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 1 Sep 2020 11:00:57 +0800 (GMT-8) (envelope-from tian.xianting@h3c.com) Received: from localhost.localdomain (10.99.212.201) by DAG2EX03-BASE.srv.huawei-3com.com (10.8.0.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 1 Sep 2020 11:00:58 +0800 From: Xianting Tian To: , , CC: , , Xianting Tian Subject: [PATCH] clocksource: return negative error code Date: Tue, 1 Sep 2020 10:54:12 +0800 Message-ID: <20200901025412.39128-1-tian.xianting@h3c.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.99.212.201] X-ClientProxiedBy: BJSMTP01-EX.srv.huawei-3com.com (10.63.20.132) To DAG2EX03-BASE.srv.huawei-3com.com (10.8.0.66) X-DNSRBL: X-MAIL: h3cspam01-ex.h3c.com 08130va1020900 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A negative error code should be returned Signed-off-by: Xianting Tian --- drivers/clocksource/h8300_timer8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/h8300_timer8.c b/drivers/clocksource/h8300_timer8.c index 1d740a8c4..47114c2a7 100644 --- a/drivers/clocksource/h8300_timer8.c +++ b/drivers/clocksource/h8300_timer8.c @@ -169,7 +169,7 @@ static int __init h8300_8timer_init(struct device_node *node) return PTR_ERR(clk); } - ret = ENXIO; + ret = -ENXIO; base = of_iomap(node, 0); if (!base) { pr_err("failed to map registers for clockevent\n"); -- 2.17.1