Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1802709pxk; Sat, 19 Sep 2020 02:51:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDkInExOZYZRixv4Iqh2BFi/04CB52uf2Vk9B6RkMed1O+ZnOL7gBuMkJPkQXSeYs1jJYV X-Received: by 2002:a17:906:c2d2:: with SMTP id ch18mr42420162ejb.79.1600509102221; Sat, 19 Sep 2020 02:51:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600509102; cv=none; d=google.com; s=arc-20160816; b=RDujNJda3x/s3QTQmGWR5yxFY6v4a1HjorQwSiz9m6QKZwNRZfMFOeD98IOd3uxDrQ iEZFbDdw8pbwO0I/zLXf0dRUc6xzYYv6srJXX+KPJfaUifsY030UeNMaNV6NFdyc6tEE 6XmvqiaIXUKzcpTvTMunypSDmRp6CGn/iVpUiMgJpF9IrsbtEHu6h5vkzgousW/nUNmg 6+QAvJ0CE3h3PT5W74VQiG0AgkJljSRVjj6dmRHTinqnH2N8KmgYxUmpuwkaOC7qZdZV VYWmfPQgbO/p+hhwO0mO11Jq/zQZtNvCSYLVCVdZJLok6L6IdOu2/429yjmhZEOM0SNV 7WNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=MoBihDotrYUQRecXNsCTmWTM9oS7SRV/4YOZbso7+p4=; b=sQRL3w3Ydk3wIFIa3+/72CS2hi7hDLpdJmZ/1rtS+/6Xi1NQCiyVrBxn98peshag7A r5S/k8I8EYEnT81KQYebdDndXqrVzlwREYcEUu5dUKtx0s+CQ8YbSjBfdqS3kr5SHDfR tIilLgF9oue5BV9dDootueoeIhE6Q9nCffrxcRKFDl2NlRBDBAn+ziSBNP5rITchwqxB vgKHfqrVrbsjhLRdihxHBgyLSvTpZUMJlI0ID6fbZqdPyPr3NfQ6NPs+jpRXScOM0p+2 yT2RHj6w50X/OJJ+vugKTzGGh4ErgQB2Pz34sJOsyenOMZjkqYzPW6j/w2P15wpp7BUr XOHQ== 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 j17si4109514ejs.0.2020.09.19.02.51.18; Sat, 19 Sep 2020 02:51:42 -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 S1726368AbgISJqo (ORCPT + 99 others); Sat, 19 Sep 2020 05:46:44 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:47456 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726307AbgISJqj (ORCPT ); Sat, 19 Sep 2020 05:46:39 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 94376AA78F333804EE86; Sat, 19 Sep 2020 17:46:35 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Sat, 19 Sep 2020 17:46:27 +0800 From: Liu Shixin To: Alessandro Zummo , Alexandre Belloni , Kevin Hilman , "Neil Armstrong" , Jerome Brunet , Martin Blumenstingl CC: , , , , "Liu Shixin" Subject: [PATCH -next] rtc: meson: simplify the return expression of meson_vrtc_probe Date: Sat, 19 Sep 2020 18:08:56 +0800 Message-ID: <20200919100856.1639319-1-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.32] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/rtc/rtc-meson-vrtc.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/rtc/rtc-meson-vrtc.c b/drivers/rtc/rtc-meson-vrtc.c index 89e5ba0dae69..e6bd0808a092 100644 --- a/drivers/rtc/rtc-meson-vrtc.c +++ b/drivers/rtc/rtc-meson-vrtc.c @@ -65,7 +65,6 @@ static const struct rtc_class_ops meson_vrtc_ops = { static int meson_vrtc_probe(struct platform_device *pdev) { struct meson_vrtc_data *vrtc; - int ret; vrtc = devm_kzalloc(&pdev->dev, sizeof(*vrtc), GFP_KERNEL); if (!vrtc) @@ -84,11 +83,7 @@ static int meson_vrtc_probe(struct platform_device *pdev) return PTR_ERR(vrtc->rtc); vrtc->rtc->ops = &meson_vrtc_ops; - ret = rtc_register_device(vrtc->rtc); - if (ret) - return ret; - - return 0; + return rtc_register_device(vrtc->rtc); } static int __maybe_unused meson_vrtc_suspend(struct device *dev) -- 2.25.1