[patch] NVMe: Precedence error in nvme_pr_clear()

Jens Axboe axboe at fb.com
Tue Nov 3 11:58:33 PST 2015


On 11/03/2015 12:50 PM, Dan Carpenter wrote:
> The original code is equivalent to:
>
> 	u32 cdw10 = (1 | key) ? 1 << 3 : 0;
>
> But we want:
>
> 	u32 cdw10 = 1 | (key ? 1 << 3 : 0);
>
> Fixes: 1d277a637a71: ('NVMe: Add persistent reservation ops')
> Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>

Thanks Dan, applied.


-- 
Jens Axboe




More information about the Linux-nvme mailing list