]> git.dujemihanovic.xyz Git - u-boot.git/commit
nvme: Eliminate the offset of one during block dev creation
authorBin Meng <bmeng.cn@gmail.com>
Tue, 22 Jun 2021 13:16:19 +0000 (21:16 +0800)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 23 Jun 2021 09:21:14 +0000 (17:21 +0800)
commit8c60d40d69fd834f67322bbcea06ef0adf9076e1
treef610019088021ccd4101a59dc24d6b4970b29241
parent478f7fc6a04ae81af550b56b31f18af24cf3f262
nvme: Eliminate the offset of one during block dev creation

At present there is an offset of one added during the creation of
block device. This can be very confusing as we wanted to encode the
namespace id in the block device name but namespae id cannot be zero.

This changes to use the namespace id directly in the block device
name, eliminating the offset of one effectively.

Suggested-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
drivers/nvme/nvme.c