projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
572c973
)
nvme-fabrics: use unsigned int type
author
Chaitanya Kulkarni
<kch@nvidia.com>
Wed, 12 Jan 2022 06:21:00 +0000
(22:21 -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
|
history
diff --git
a/drivers/nvme/host/fabrics.c
b/drivers/nvme/host/fabrics.c
index 9f81a0562e3e9e7f1d630d9526a176758e10085f..131e78e62d00dcbdd852b96a443c75c6e39ef26b 100644
(file)
--- 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) &&