Re: [PATCH 06/10] mpt3sas: Introduce mpt3sas_get_st_from_smid()

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

 



>  inline u8
>  mpt3sas_scsi_direct_io_get(struct MPT3SAS_ADAPTER *ioc, u16 smid)
>  {
> -	return ioc->scsi_lookup[smid - 1].direct_io;
> +	struct scsiio_tracker *st = mpt3sas_get_st_from_smid(ioc, smid);
> +
> +	return st ? st->direct_io : 0;

This wrapper can go away and be merged into the only caller.

Otherwise looks fine:

Reviewed-by: Christoph Hellwig <hch@xxxxxx>



[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