summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2016-04-13 05:40:00 -0800
committerKent Overstreet <kent.overstreet@gmail.com>2016-10-07 12:36:09 -0800
commit70918a2b346a5ef7f99f069e925bdd7d08adfe9b (patch)
treedfc19edfc9939fdba87f85ad0bc45d9950ca16d1
parent9e453c46ce8b1c24d1e1b5e7b7c86f9abd4676d3 (diff)
bcache: fix setting bool/uint opts from sysfs
ugh variable shadowing
-rw-r--r--drivers/md/bcache/sysfs.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/md/bcache/sysfs.h b/drivers/md/bcache/sysfs.h
index 4da5f451d286..9d5845874931 100644
--- a/drivers/md/bcache/sysfs.h
+++ b/drivers/md/bcache/sysfs.h
@@ -88,11 +88,11 @@ do { \
#define strtoul_restrict_or_return(cp, min, max) \
({ \
- unsigned long _v = 0; \
- int _r = strtoul_safe_restrict(cp, _v, min, max); \
+ unsigned long __v = 0; \
+ int _r = strtoul_safe_restrict(cp, __v, min, max); \
if (_r) \
return _r; \
- _v; \
+ __v; \
})
#define strtoi_h_or_return(cp) \