Skip to content

Commit 6b76c10

Browse files
dwsuseigaw
authored andcommitted
fabrics: rename first argument for argument macros
The first argument of the macros is the nvme_root_t variable. build_options is using 'r' as variable name for this type, thus the macro still worked even though the first argument was called 'o'. Let's rename it so it matches the actual use. Signed-off-by: Daniel Wagner <[email protected]>
1 parent 2201d13 commit 6b76c10

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/nvme/fabrics.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ static int __nvmf_supported_options(nvme_root_t r);
363363
!__nvmf_supported_options(r) && (r)->options->tok; \
364364
})
365365

366-
#define add_bool_argument(o, argstr, tok, arg) \
366+
#define add_bool_argument(r, argstr, tok, arg) \
367367
({ \
368368
int ret; \
369369
if (nvmf_check_option(r, tok)) { \
@@ -379,7 +379,7 @@ static int __nvmf_supported_options(nvme_root_t r);
379379
ret; \
380380
})
381381

382-
#define add_int_argument(o, argstr, tok, arg, allow_zero) \
382+
#define add_int_argument(r, argstr, tok, arg, allow_zero) \
383383
({ \
384384
int ret; \
385385
if (nvmf_check_option(r, tok)) { \
@@ -396,7 +396,7 @@ static int __nvmf_supported_options(nvme_root_t r);
396396
ret; \
397397
})
398398

399-
#define add_int_or_minus_one_argument(o, argstr, tok, arg) \
399+
#define add_int_or_minus_one_argument(r, argstr, tok, arg) \
400400
({ \
401401
int ret; \
402402
if (nvmf_check_option(r, tok)) { \

0 commit comments

Comments
 (0)