aboutsummaryrefslogtreecommitdiffstats
path: root/include/sys/spa.h
diff options
context:
space:
mode:
authorDon Brady <[email protected]>2017-11-04 14:25:13 -0600
committerBrian Behlendorf <[email protected]>2017-11-04 13:25:13 -0700
commit1c27024e22af4386b592b30d40e6a0820ceb48c1 (patch)
tree689d4b821fd6910a137a0f93351351def5011cec /include/sys/spa.h
parentdf1f129bc4150fd6ea3f23a01154a71ffa48bf12 (diff)
Undo c89 workarounds to match with upstream
With PR 5756 the zfs module now supports c99 and the remaining past c89 workarounds can be undone. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: George Melikov <[email protected]> Signed-off-by: Don Brady <[email protected]> Closes #6816
Diffstat (limited to 'include/sys/spa.h')
-rw-r--r--include/sys/spa.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/sys/spa.h b/include/sys/spa.h
index a5278da6b..c291c5082 100644
--- a/include/sys/spa.h
+++ b/include/sys/spa.h
@@ -638,7 +638,6 @@ _NOTE(CONSTCOND) } while (0)
{ "zero", "single", "double", "triple" }; \
int len = 0; \
int copies = 0; \
- int d; \
\
if (bp == NULL) { \
len += func(buf + len, size - len, "<NULL>"); \
@@ -662,7 +661,7 @@ _NOTE(CONSTCOND) } while (0)
(u_longlong_t)BPE_GET_PSIZE(bp), \
(u_longlong_t)bp->blk_birth); \
} else { \
- for (d = 0; d < BP_GET_NDVAS(bp); d++) { \
+ for (int d = 0; d < BP_GET_NDVAS(bp); d++) { \
const dva_t *dva = &bp->blk_dva[d]; \
if (DVA_IS_VALID(dva)) \
copies++; \