[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <8a872467-fbf4-59dd-02eb-bc69efc5bcec@nfschina.com>
Date: Mon, 13 Nov 2023 14:55:49 +0800
From: Su Hui <suhui@...china.com>
To: Jason Yan <yanaijie@...wei.com>, jinpu.wang@...ud.ionos.com,
jejb@...ux.ibm.com, martin.petersen@...cle.com, nathan@...nel.org,
ndesaulniers@...gle.com, trix@...hat.com
Cc: damien.lemoal@...nsource.wdc.com, johannes.thumshirn@....com,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
llvm@...ts.linux.dev, kernel-janitors@...r.kernel.org
Subject: Re: [PATCH] scsi: pm8001: return error code if no attached dev
On 2023/11/13 14:43, Jason Yan wrote:
> On 2023/11/13 14:32, Su Hui wrote:
>> On 2023/11/13 13:56, Jason Yan wrote:
>>> Hi, Su
>>>
>>> On 2023/11/13 13:01, Su Hui wrote:
>>>> Clang static analyzer complains that value stored to 'res' is never
>>>> read.
>>>> Return the error code when sas_find_attached_phy_id() failed.
>>>>
>>>> Fixes: ec64858657a8 ("scsi: pm8001: Use sas_find_attached_phy_id()
>>>> instead of open coding it")
>>>
>>> This 'Fixes' tag is not right. This commit is only a refactor and
>>> did not change the original logic here.
>>>
>> Hi, Jason
>>
>> Thanks for your reply. But I think the logic of this code is changed.
>
> I,m talking about the Fixes tag: ec64858657a8 ("scsi: pm8001: Use
> sas_find_attached_phy_id() instead of open coding it"
>
> That commit did not change the original logic. So your patch is not
> fixing that commit.
Oh, got it.
Really thanks for your reminder! I will send v2 patch soon:).
Su Hui
Powered by blists - more mailing lists