summaryrefslogtreecommitdiffstats
path: root/libblkid/src/superblocks/zfs.c
diff options
context:
space:
mode:
authorKarel Zak2015-03-06 10:57:12 +0100
committerKarel Zak2015-03-06 10:57:12 +0100
commit0487bcb1a3db3906564780b37818ed9a93f425b0 (patch)
tree7bc39ae0a1e23e0077f74093e21ed397eff89296 /libblkid/src/superblocks/zfs.c
parentMerge branch 'zfs' of https://github.com/mihu/util-linux (diff)
downloadkernel-qcow2-util-linux-0487bcb1a3db3906564780b37818ed9a93f425b0.tar.gz
kernel-qcow2-util-linux-0487bcb1a3db3906564780b37818ed9a93f425b0.tar.xz
kernel-qcow2-util-linux-0487bcb1a3db3906564780b37818ed9a93f425b0.zip
libblkid: fix compiler warning [-Wunused-variable]
libblkid/src/superblocks/zfs.c: In function 'probe_zfs': libblkid/src/superblocks/zfs.c:199:11: warning: unused variable 'swab_magic' [-Wunused-variable] Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libblkid/src/superblocks/zfs.c')
-rw-r--r--libblkid/src/superblocks/zfs.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libblkid/src/superblocks/zfs.c b/libblkid/src/superblocks/zfs.c
index 9b5601e0a..e9c10dcd6 100644
--- a/libblkid/src/superblocks/zfs.c
+++ b/libblkid/src/superblocks/zfs.c
@@ -196,7 +196,6 @@ static int find_uberblocks(const void *label, loff_t *ub_offset, int *swap_endia
* #4 (@ 132kB) is the first one written on a new filesystem. */
static int probe_zfs(blkid_probe pr, const struct blkid_idmag *mag)
{
- uint64_t swab_magic = swab64(UBERBLOCK_MAGIC);
int swab_endian = 0;
struct zfs_uberblock *ub;
loff_t offset, ub_offset = 0;