]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet: use u32 type for the local variable nsid
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Mon, 14 Jun 2021 01:58:49 +0000 (18:58 -0700)
committerChristoph Hellwig <hch@lst.de>
Thu, 17 Jun 2021 13:51:20 +0000 (15:51 +0200)
commit3f1fd20c010026cd08b0de01069e8466a494a440
tree662cc8b1468f92541c4127e3ca0454cc5c4a4ffc
parentaba62df0009762285d7da75c0e35dec3aac111cd
nvmet: use u32 type for the local variable nsid

In function nvmet_max_nsid() we calculate the max nsid by iterating
over the XArray and store it in the variable nsid that has type of
unsigned long.

Since the value of this function is stored into the subsys->max_nsid
which is of type u32, change the local variable nsid type and the return
type of the same function to u32.

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/core.c