summaryrefslogtreecommitdiffstats
path: root/drivers/nvme/host/fabrics.c
diff options
context:
space:
mode:
authorChaitanya Kulkarni <kch@nvidia.com>2022-01-11 22:20:59 -0800
committerChristoph Hellwig <hch@lst.de>2022-02-28 13:45:04 +0200
commit572c97355bdc0e7cdd5979304b8554712e26ceb8 (patch)
tree7db01f2f76f7617279c07bda2bc0f9ca1a90476a /drivers/nvme/host/fabrics.c
parentba3266434d6615ff8015b01846d0e7756c9ad936 (diff)
downloadlinux-572c97355bdc0e7cdd5979304b8554712e26ceb8.tar.gz
linux-572c97355bdc0e7cdd5979304b8554712e26ceb8.tar.bz2
linux-572c97355bdc0e7cdd5979304b8554712e26ceb8.zip
nvme-fabrics: use unsigned int type
Loop variable i will never have a negative value, so use unsigned int type instaed of int. Signed-off-by: Chaitanya Kulkarni <kch@nvidia.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/host/fabrics.c')
-rw-r--r--drivers/nvme/host/fabrics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/fabrics.c b/drivers/nvme/host/fabrics.c
index f79a66d4e22c..9f81a0562e3e 100644
--- a/drivers/nvme/host/fabrics.c
+++ b/drivers/nvme/host/fabrics.c
@@ -873,7 +873,7 @@ static int nvmf_check_required_opts(struct nvmf_ctrl_options *opts,
unsigned int required_opts)
{
if ((opts->mask & required_opts) != required_opts) {
- int i;
+ unsigned int i;
for (i = 0; i < ARRAY_SIZE(opt_tokens); i++) {
if ((opt_tokens[i].token & required_opts) &&