From: Bart Van Assche <Bart.VanAssche@wdc.com>
To: "mwilck@suse.com" <mwilck@suse.com>,
"hare@suse.de" <hare@suse.de>,
"martin.petersen@oracle.com" <martin.petersen@oracle.com>
Cc: "jejb@linux.vnet.ibm.com" <jejb@linux.vnet.ibm.com>,
"xose.vazquez@gmail.com" <xose.vazquez@gmail.com>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH] scsi: handle special return codes for ABORTED COMMAND
Date: Mon, 29 Jan 2018 23:39:14 +0000 [thread overview]
Message-ID: <1517269153.2687.61.camel@wdc.com> (raw)
In-Reply-To: <20180129233013.23474-1-mwilck@suse.com>
On Tue, 2018-01-30 at 00:30 +0100, Martin Wilck wrote:
> + static struct aborted_cmd_blist blist[] = {
Please consider to declare this array const.
> + for (i = 0; i < sizeof(blist)/sizeof(struct aborted_cmd_blist); i++) {
Have you considered to use ARRAY_SIZE()?
Thanks,
Bart.
next prev parent reply other threads:[~2018-01-29 23:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-29 23:30 [PATCH] scsi: handle special return codes for ABORTED COMMAND Martin Wilck
2018-01-29 23:39 ` Bart Van Assche [this message]
2018-01-30 0:01 ` Martin Wilck
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=1517269153.2687.61.camel@wdc.com \
--to=bart.vanassche@wdc.com \
--cc=hare@suse.de \
--cc=jejb@linux.vnet.ibm.com \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=mwilck@suse.com \
--cc=xose.vazquez@gmail.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