diff options
author | Chaitanya Kulkarni <kch@nvidia.com> | 2022-01-12 07:21:00 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2022-02-28 12:45:04 +0100 |
commit | 0801a4b630ab0949ddf0fc3f26cb17976e2d3afb (patch) | |
tree | be5c3b4facdfc4ab6e2d9fadbfa85f73776e151a /drivers/nvme | |
parent | nvme-fabrics: use unsigned int type (diff) | |
download | linux-0801a4b630ab0949ddf0fc3f26cb17976e2d3afb.tar.xz linux-0801a4b630ab0949ddf0fc3f26cb17976e2d3afb.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')
-rw-r--r-- | drivers/nvme/host/fabrics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/fabrics.c b/drivers/nvme/host/fabrics.c index 9f81a0562e3e..131e78e62d00 100644 --- a/drivers/nvme/host/fabrics.c +++ b/drivers/nvme/host/fabrics.c @@ -923,7 +923,7 @@ static int nvmf_check_allowed_opts(struct nvmf_ctrl_options *opts, unsigned int allowed_opts) { if (opts->mask & ~allowed_opts) { - int i; + unsigned int i; for (i = 0; i < ARRAY_SIZE(opt_tokens); i++) { if ((opt_tokens[i].token & opts->mask) && |