[PATCH 03/14] nvmet: use consistent type with id->nlbaf

Logan Gunthorpe logang at deltatee.com
Mon Aug 10 17:55:39 EDT 2020



On 2020-08-10 12:54 p.m., Chaitanya Kulkarni wrote:
> In function nvmet_passthru_override_id_ns() while iterating
> over namespace lba format loop variable is declared as int that is
> inconsistent with the id->nlbaf type which is u8.
> 
> Make loop variable of the same type as id->nlbaf.

Why is this an improvement? Seems to me a loop variable should use the
fastest type (ie an int).

Logan



More information about the Linux-nvme mailing list