Re: [VERY EARLY RFC 12/13] reewide: introduce clear_scsi_result() and convert drivers

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

 



On Thu, Apr 19, 2018 at 08:15:47AM +0200, Hannes Reinecke wrote:
> On Wed, 18 Apr 2018 17:01:15 +0200
> Johannes Thumshirn <jthumshirn@xxxxxxx> wrote:
> 
> > Introduce clear_scsi_result() and convert drivers over to use the new
> > function.
> > 
> 
> [ .. ]
> 
> Why not use 'set_scsi_result' here?
> Basically everywhere the usage pattern is
> 
> clear_scsi_result()
> set_host_byte()
> 
> so they can be collapsed into
> 
> set_scsi_result(cmd, 0, host_byte, 0, 0)
> 
> and this helper can be dropped.

Yup, this sounds like a good idea.

-- 
Johannes Thumshirn                                          Storage
jthumshirn@xxxxxxx                                +49 911 74053 689
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)
Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850



[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