diff options
author | Brian Behlendorf <[email protected]> | 2017-05-05 10:17:32 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-05-05 10:23:58 -0700 |
commit | 1eab430af7828cc1f85a7c26ef37d5da88884977 (patch) | |
tree | 6a74076514e4e26255d73f820f178589558927df /module/zfs/dmu.c | |
parent | c17486b2178fc545c50d48effd4be47d33208933 (diff) |
Fix unused variable warning
Remove the lz4_ac local variable from dmu_write_policy() to resolve
the following unused variable warning on non-debug builds.
dmu.c: In function ‘dmu_write_policy’:
dmu.c:1892:12: warning: unused variable ‘lz4_ac’ [-Wunused-variable]
boolean_t lz4_ac = spa_feature_is_active(os->os_spa,
Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module/zfs/dmu.c')
-rw-r--r-- | module/zfs/dmu.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/module/zfs/dmu.c b/module/zfs/dmu.c index 3552dfb53..4203ddb16 100644 --- a/module/zfs/dmu.c +++ b/module/zfs/dmu.c @@ -1889,10 +1889,9 @@ dmu_write_policy(objset_t *os, dnode_t *dn, int level, int wp, boolean_t nopwrite = B_FALSE; boolean_t dedup_verify = os->os_dedup_verify; int copies = os->os_copies; - boolean_t lz4_ac = spa_feature_is_active(os->os_spa, - SPA_FEATURE_LZ4_COMPRESS); - IMPLY(override_compress == ZIO_COMPRESS_LZ4, lz4_ac); + IMPLY(override_compress == ZIO_COMPRESS_LZ4, + spa_feature_is_active(os->os_spa, SPA_FEATURE_LZ4_COMPRESS)); /* * We maintain different write policies for each of the following |