[PATCH 05/14] nvmet: get rid of the extra variable

Chaitanya Kulkarni Chaitanya.Kulkarni at wdc.com
Mon Aug 10 19:25:18 EDT 2020


On 8/10/20 16:13, Keith Busch wrote:
> The odd looking part is mixing "likely()" and "unlikely()" in the same
> conditional.
> 

Actually The sg_cnt check can be moved into nvmet_passthru_map_sg() then 
we can get rid of the odd looking likely() and unlikely()
and have only one call.



More information about the Linux-nvme mailing list