Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2953962pxk; Mon, 21 Sep 2020 01:06:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPn1jGy+FYn9mYG6fhAKmq8q1PDwzW7kVFgP4tJk1ZIgo3+hY22HB+hOhu7q2PmXWZBry6 X-Received: by 2002:a17:906:14d3:: with SMTP id y19mr47462006ejc.453.1600675615637; Mon, 21 Sep 2020 01:06:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600675615; cv=none; d=google.com; s=arc-20160816; b=aYD/f8aLJbckJoRKAazST4W+gYZhDWJRRPiIb6Qj4PVu1wMd6siLtO65+ex7fBsKXa E7bVOjikqBPlPGn6giYpSv6yuz45xulF3KChQwNMBIFq2uGdO0AQjkPfy6hqxwPDDXDy 8Jia33eTuxmA1ZGKEUyChrCu02oTknVcj02UdfmMbDkOvqAnzEG4+0vWeBoyCrtB9OKq zFZPHaSK3FWDSdGaHvFoWGUSZsAeTZW03WMtDdc8zzevOdxAMOmWYDvgnsW2emmckVhN BfOyAtvbq6u8LbK38kEi1gcTNAMJl85Fs8CCqMmq95A8DMeszGmhe4ZGJfxuDvRu6Ig+ MYeA== 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=c3o29nZk2sNJYwy6WgnWpOSeqvfWJEnZAKK8Pi4n3wU=; b=yhuUAJfbJGKXZ5jf5PsRkzOGy0yicxFPZ7wZx4B0PgE/sQlxtFT5uc1M0NtBAXBbHp 7uy/ShuKHO+dii98bDCKlCslDVq9TCfu2GNeQeVb93KBX+m9sA9l9V5xAP2tohZIXYuA IMLd11Mmhety11H0Vjb8ptpS6lFjEP3b5tuEHf+CizffZmLZBy9NYWn/MjuXjnIWtV4W CkJzbXFCy3EPOjjdzRHG9d94BQxfUK/9Qd2xM8ePmdLpyKBfqaxTLvdkK+uoisFqfFi3 xh1t7ly2Yjyh92Xu7Y9wN5oMqB7qRumGzFmSCwpnvwNY+5r5t4FK9oMkydPCiBVu3wIb /MFw== 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 d8si7277072eds.416.2020.09.21.01.06.32; Mon, 21 Sep 2020 01:06:55 -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 S1726957AbgIUICp (ORCPT + 99 others); Mon, 21 Sep 2020 04:02:45 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:13743 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726416AbgIUICh (ORCPT ); Mon, 21 Sep 2020 04:02:37 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id EB4466583FD1CCC8DB78; Mon, 21 Sep 2020 16:02:35 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Mon, 21 Sep 2020 16:02:29 +0800 From: Liu Shixin To: "James E.J. Bottomley" , "Martin K. Petersen" CC: , , Liu Shixin Subject: [PATCH -next] scsi: libsas: simplify the return expression of sas_discover_end_dev Date: Mon, 21 Sep 2020 16:24:53 +0800 Message-ID: <20200921082453.2592137-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/scsi/libsas/sas_discover.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/scsi/libsas/sas_discover.c b/drivers/scsi/libsas/sas_discover.c index d0f9e90e3279..161c9b387da7 100644 --- a/drivers/scsi/libsas/sas_discover.c +++ b/drivers/scsi/libsas/sas_discover.c @@ -278,13 +278,7 @@ static void sas_resume_devices(struct work_struct *work) */ int sas_discover_end_dev(struct domain_device *dev) { - int res; - - res = sas_notify_lldd_dev_found(dev); - if (res) - return res; - - return 0; + return sas_notify_lldd_dev_found(dev); } /* ---------- Device registration and unregistration ---------- */ -- 2.25.1