Re: [PATCH] scsi: handle special return codes for ABORTED COMMAND

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux