[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <cb02f6a2-be87-9391-212b-c53d98a80bb2@huawei.com>
Date: Thu, 27 Jan 2022 10:42:38 +0000
From: John Garry <john.garry@...wei.com>
To: Christoph Hellwig <hch@...radead.org>
CC: <jejb@...ux.ibm.com>, <martin.petersen@...cle.com>,
<artur.paszkiewicz@...el.com>, <jinpu.wang@...ud.ionos.com>,
<chenxiang66@...ilicon.com>, <Ajish.Koshy@...rochip.com>,
<yanaijie@...wei.com>, <linux-doc@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <linux-scsi@...r.kernel.org>,
<linuxarm@...wei.com>, <liuqi115@...wei.com>,
<Viswas.G@...rochip.com>, <damien.lemoal@...nsource.wdc.com>
Subject: Re: [PATCH 01/16] scsi: libsas: Use enum for response frame DATAPRES
field
On 27/01/2022 10:19, Christoph Hellwig wrote:
> On Tue, Jan 25, 2022 at 07:32:37PM +0800, John Garry wrote:
>> - if (iu->datapres == 0)
>> + if (iu->datapres == NO_DATA)
>> tstat->stat = iu->status;
>> - else if (iu->datapres == 1)
>> + else if (iu->datapres == RESPONSE_DATA)
>> tstat->stat = iu->resp_data[3];
>> - else if (iu->datapres == 2) {
>> + else if (iu->datapres == SENSE_DATA) {
> Maybe use a switch here to make it more obvious?
> .
ok, I can include that suggestion.
Thanks,
John
Powered by blists - more mailing lists