summaryrefslogtreecommitdiff
path: root/block/partitions
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-07-02 08:13:59 +0100
committerJens Axboe <axboe@kernel.dk>2018-07-09 09:07:53 -0600
commite84422cdf3caa9cf35e625076dc62977f0023992 (patch)
tree2a06fb0593c91cbf48b6088e10d29792664fbfeb /block/partitions
parentf4354a94e2097fe87a14d47ff502754bb547029a (diff)
partitions/ldm: remove redundant pointer dgrp
Pointer dgrp is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable 'dgrp' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/partitions')
-rw-r--r--block/partitions/ldm.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/block/partitions/ldm.c b/block/partitions/ldm.c
index 0417937dfe99..16766f267559 100644
--- a/block/partitions/ldm.c
+++ b/block/partitions/ldm.c
@@ -830,7 +830,6 @@ static bool ldm_parse_dgr4 (const u8 *buffer, int buflen, struct vblk *vb)
{
char buf[64];
int r_objid, r_name, r_id1, r_id2, len;
- struct vblk_dgrp *dgrp;
BUG_ON (!buffer || !vb);
@@ -853,8 +852,6 @@ static bool ldm_parse_dgr4 (const u8 *buffer, int buflen, struct vblk *vb)
if (len != get_unaligned_be32(buffer + 0x14))
return false;
- dgrp = &vb->vblk.dgrp;
-
ldm_get_vstr (buffer + 0x18 + r_objid, buf, sizeof (buf));
return true;
}