projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba32664
)
nvme-fabrics: use unsigned int type
author
Chaitanya Kulkarni
<kch@nvidia.com>
Wed, 12 Jan 2022 06:20:59 +0000
(22:20 -0800)
committer
Christoph Hellwig
<hch@lst.de>
Mon, 28 Feb 2022 11:45:04 +0000
(13:45 +0200)
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>
drivers/nvme/host/fabrics.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/nvme/host/fabrics.c
b/drivers/nvme/host/fabrics.c
index f79a66d4e22cec200b3a35d12c9c47efcbb07425..9f81a0562e3e9e7f1d630d9526a176758e10085f 100644
(file)
--- 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) &&