Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3135503pxk; Mon, 21 Sep 2020 06:13:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYLK6Q++eetNEmJ1lNfHPjg4gUwudsjPtaJqN4Nn1L+74FDPCD3U6WzyeznTFA/NjMnMCn X-Received: by 2002:a05:6402:c15:: with SMTP id co21mr50693737edb.268.1600694039804; Mon, 21 Sep 2020 06:13:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600694039; cv=none; d=google.com; s=arc-20160816; b=jUtG9SW7jjQ+WZqAHgkRNIlQ7oinZgPzgTK8BrsRaJKKL4JRBOcbtQ6brIpGKVzqAN OCiRwVyBVB+D80zyJ71JIBoPA4XxYNKauL03Z8Y+8bF/b+q33rAQSy/sM81Te51pDhKG VZUzhAE0snjgdxI7e8RLh8mJhVmCRSb0hSAKOT4aZRVMgbAMQ9GSYe+wA7A3UPhk7MLC zmQy3kdXf40GAX2HVeTLkuX2267f8+M8pRC257JvHy/K6tszk4qn8iM3Ap5me4IDrNCw 4r45/V/UDtXfG4iwJfM5ExaZOH+Cku3GYk0rT1Q2dmPsLxg8NZZudjWaDYkKtVQUIrmH lMsg== 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=K0jPMS3kMcp5V47O5fPRjylfDwDUzxHd3EXqWr+w8mw=; b=cDCdzrpKaq783a/fgpvEoQ81yewoXpJvOcecLnalh+BvtRZE4ETn79dPqranss5ePM +KYMkEosScPYi5ugRfLJMITSEXyaOe4OMXvvqSSrbE+vQ4BB3UnB26UnYjLUb3PrP99q GAocwzj1hUKPaMVLFacqnqNAwyjt228sRXKKeXUXLBa165FMutp2FCtPXYnwpBbV++lC Pr/DiUN/geTVMYp4EzsKoiucZWKAmv37WUJxZGIHoiSLPuwUIV6RztY8rhPik8ovuv0D doInfqDe2E60IsNq4u99hj70HDn6DoCxzWKkSEz7cW0ph2w1TJaL6ERULxphzBJblBVb AeNw== 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 u16si8321879edo.487.2020.09.21.06.13.35; Mon, 21 Sep 2020 06:13:59 -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 S1727624AbgIUNLu (ORCPT + 99 others); Mon, 21 Sep 2020 09:11:50 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:14201 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727386AbgIUNKs (ORCPT ); Mon, 21 Sep 2020 09:10:48 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 50707B989B32189575AF; Mon, 21 Sep 2020 21:10:44 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Mon, 21 Sep 2020 21:10:38 +0800 From: Qinglang Miao To: Hannes Reinecke , "James E.J. Bottomley" , "Martin K. Petersen" CC: , , "Qinglang Miao" Subject: [PATCH -next] scsi: fcoe: simplify the return expression of fcoe_sysfs_setup Date: Mon, 21 Sep 2020 21:11:02 +0800 Message-ID: <20200921131102.93084-1-miaoqinglang@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Simplify the return expression. Signed-off-by: Qinglang Miao --- drivers/scsi/fcoe/fcoe_sysfs.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/scsi/fcoe/fcoe_sysfs.c b/drivers/scsi/fcoe/fcoe_sysfs.c index 2cb7a8c93..ffef2c8ed 100644 --- a/drivers/scsi/fcoe/fcoe_sysfs.c +++ b/drivers/scsi/fcoe/fcoe_sysfs.c @@ -1053,16 +1053,10 @@ EXPORT_SYMBOL_GPL(fcoe_fcf_device_add); int __init fcoe_sysfs_setup(void) { - int error; - atomic_set(&ctlr_num, 0); atomic_set(&fcf_num, 0); - error = bus_register(&fcoe_bus_type); - if (error) - return error; - - return 0; + return bus_register(&fcoe_bus_type); } void __exit fcoe_sysfs_teardown(void) -- 2.23.0