diff options
author | Chaitanya Kulkarni <kch@nvidia.com> | 2022-01-12 09:20:59 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2022-02-28 14:45:04 +0300 |
commit | 572c97355bdc0e7cdd5979304b8554712e26ceb8 (patch) | |
tree | 7db01f2f76f7617279c07bda2bc0f9ca1a90476a /drivers | |
parent | ba3266434d6615ff8015b01846d0e7756c9ad936 (diff) | |
download | linux-572c97355bdc0e7cdd5979304b8554712e26ceb8.tar.xz |
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')
-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 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) && |