From: Chaitanya Kulkarni Date: Wed, 12 Jan 2022 06:21:00 +0000 (-0800) Subject: nvme-fabrics: use unsigned int type X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0801a4b630ab0949ddf0fc3f26cb17976e2d3afb;p=linux.git 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 Signed-off-by: Christoph Hellwig --- diff --git a/drivers/nvme/host/fabrics.c b/drivers/nvme/host/fabrics.c index 9f81a0562e3e9..131e78e62d00d 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) &&