From: John Garry <john.garry@huawei.com>
To: Liu Shixin <liushixin2@huawei.com>,
"James E.J. Bottomley" <jejb@linux.ibm.com>,
"Martin K. Petersen" <martin.petersen@oracle.com>
Cc: <linux-scsi@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH -next] scsi: libsas: simplify the return expression of sas_discover_end_dev
Date: Mon, 21 Sep 2020 14:03:34 +0100 [thread overview]
Message-ID: <d44beaa3-6338-9188-7cf3-338cc0120305@huawei.com> (raw)
In-Reply-To: <20200921082453.2592137-1-liushixin2@huawei.com>
On 21/09/2020 09:24, Liu Shixin wrote:
> Simplify the return expression.
>
> Signed-off-by: Liu Shixin <liushixin2@huawei.com>
> ---
> 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 ---------- */
>
You can make a similar change at the end of sas_discover_data() [and
include in the same patch]
next prev parent reply other threads:[~2020-09-21 13:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-21 8:24 Liu Shixin
2020-09-21 13:03 ` John Garry [this message]
2020-09-21 13:45 ` [PATCH -next] scsi: libsas: simplify the return expression of sas_discover_* functions Liu Shixin
2020-09-21 13:46 ` Jason Yan
2020-09-23 0:30 ` Martin K. Petersen
2020-09-30 3:34 ` Martin K. Petersen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d44beaa3-6338-9188-7cf3-338cc0120305@huawei.com \
--to=john.garry@huawei.com \
--cc=jejb@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=liushixin2@huawei.com \
--cc=martin.petersen@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®