Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4841723pxu; Thu, 10 Dec 2020 06:49:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJzaCRRaa72FEXtjiSrxgjxu3j3LJaVZvo9hs3qSGWwAFT5aJw85ScjmJc9F3qtqDGc8KjNE X-Received: by 2002:a17:906:1e0c:: with SMTP id g12mr6872867ejj.214.1607611793436; Thu, 10 Dec 2020 06:49:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607611793; cv=none; d=google.com; s=arc-20160816; b=cOg+wxfUO5uVkKikSiiSMOB8718G7rR/vlvLt96RcdqjPJen/nng/0G+frmkFjmN0/ Z6rMvh+BFh1uIFY1MbbXxj3x4LZahy86ylB0RWtI1yEtZDPyDao9wuDzd/7Cm8c0gZUC jKbhQs0O7n1ADHeWbldc5qWULKwf8qp1vj9IGuUrb9O7EwCotJXkQxQi1MFhziCi62eR fQ5KM2TUmgEWyp4ThaCToox+yidONeb6uvW+ZNtXTMJOt/dvlLQB3HKjWQaC4a1n09aM JrAPn6jH6a3vhSrTTpaca6L9pfkhf/GG3PaAtMmIpEdpze1laPjGZJcZxX6rIHCe6kQ9 Mm+g== 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=mmfcqnHXbbgCzAgHwEY3Et/VOgyTo1tsLj3vCiHcUpM=; b=JOOos3dumBi5Bt9kKjypxEEs8jOjvOmn+oPAXyTkj9NECnl81jcxvSHNKm6jEK8y0x +DQ6fNbhXm26dlHOxyK8UOEwhC0tRbO2VxBydrmDYm8SNAGSvCxzvy9MbbmFhLZGo3Rh +cfLQkfG9qBPjy2MxhBlCKQISNzQf4qNTvI2O30T48ayd4d4sdGdEpDGlwUo3sRkziNm TRxRi8fsqWz28xVCkVEVWCiHMyWAwB7EOHgGU8lpT/M1k7eO93gFKXVXq7K2eCs7ThtL HhrmhoFwPBRFobpBIwCcPsPQ3LGGjzD6W6IBzihBnIK3feNxFtx6ORVNvj6H4uDPYhpA j9JQ== 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 e14si2796279edy.505.2020.12.10.06.49.30; Thu, 10 Dec 2020 06:49:53 -0800 (PST) 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 S2389705AbgLJNzU (ORCPT + 99 others); Thu, 10 Dec 2020 08:55:20 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:9864 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389696AbgLJNzB (ORCPT ); Thu, 10 Dec 2020 08:55:01 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4CsFkW2LVzz7C9w; Thu, 10 Dec 2020 21:53:39 +0800 (CST) Received: from ubuntu.network (10.175.138.68) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Thu, 10 Dec 2020 21:54:04 +0800 From: Zheng Yongjun To: , , , , CC: Zheng Yongjun Subject: [PATCH -next] thermal: broadcom: simplify the return expression of bcm2711_thermal_probe() Date: Thu, 10 Dec 2020 21:54:32 +0800 Message-ID: <20201210135432.1249-1-zhengyongjun3@huawei.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.138.68] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Simplify the return expression. Signed-off-by: Zheng Yongjun --- drivers/thermal/broadcom/bcm2711_thermal.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/thermal/broadcom/bcm2711_thermal.c b/drivers/thermal/broadcom/bcm2711_thermal.c index 67c2a737bc9d..1ec57d9ecf53 100644 --- a/drivers/thermal/broadcom/bcm2711_thermal.c +++ b/drivers/thermal/broadcom/bcm2711_thermal.c @@ -102,11 +102,7 @@ static int bcm2711_thermal_probe(struct platform_device *pdev) priv->thermal = thermal; thermal->tzp->no_hwmon = false; - ret = thermal_add_hwmon_sysfs(thermal); - if (ret) - return ret; - - return 0; + return thermal_add_hwmon_sysfs(thermal); } static struct platform_driver bcm2711_thermal_driver = { -- 2.22.0