Re: [PATCH v2 06/10] mpt3sas:save msix index and use same while posting RD

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

 



Suganath,

> +static u8
> +_base_set_and_get_msix_index(struct MPT3SAS_ADAPTER *ioc, u16 smid)
> +{
> +	struct scsiio_tracker *st;
> +
> +	st = (smid < ioc->hi_priority_smid) ?
> +		(_get_st_from_smid(ioc, smid)) : (NULL);

Please make this an if statement for clarity.

> +
> +	if (st == NULL)
> +		return  _base_get_msix_index(ioc, NULL);
> +
> +	st->msix_io = ioc->get_msix_index_for_smlio(ioc, st->scmd);
> +	return st->msix_io;
> +}

-- 
Martin K. Petersen	Oracle Linux Engineering



[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