Skip to content

Commit

Permalink
partitions/ldm: remove redundant pointer dgrp
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Colin Ian King authored and Jens Axboe committed Jul 9, 2018
1 parent f4354a9 commit e84422c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions block/partitions/ldm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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;
}
Expand Down

0 comments on commit e84422c

Please sign in to comment.