Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Chaitanya Kulkarni and committed by
Christoph Hellwig
0801a4b6 572c9735

+1 -1
+1 -1
drivers/nvme/host/fabrics.c
··· 923 923 unsigned int allowed_opts) 924 924 { 925 925 if (opts->mask & ~allowed_opts) { 926 - int i; 926 + unsigned int i; 927 927 928 928 for (i = 0; i < ARRAY_SIZE(opt_tokens); i++) { 929 929 if ((opt_tokens[i].token & opts->mask) &&