Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 51216778 authored by Mike Snitzer's avatar Mike Snitzer
Browse files

dm space map metadata: remove unused variable in brb_pop()



Remove the unused struct block_op pointer that was inadvertantly
introduced, via cut-and-paste of previous brb_op() code, as part of
commit 50dd842a.

(Cc'ing stable@ because commit 50dd842a did)

Fixes: 50dd842a ("dm space map metadata: fix ref counting bug when bootstrapping a new space map")
Reported-by: default avatarDavid Binderman <dcb314@hotmail.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
Cc: stable@vger.kernel.org
parent 0cc37c2d
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -152,12 +152,9 @@ static int brb_peek(struct bop_ring_buffer *brb, struct block_op *result)

static int brb_pop(struct bop_ring_buffer *brb)
{
	struct block_op *bop;

	if (brb_empty(brb))
		return -ENODATA;

	bop = brb->bops + brb->begin;
	brb->begin = brb_next(brb, brb->begin);

	return 0;