Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756255AbcCBA7a (ORCPT ); Tue, 1 Mar 2016 19:59:30 -0500 Received: from mail333.us4.mandrillapp.com ([205.201.137.77]:48096 "EHLO mail333.us4.mandrillapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755864AbcCAX4V (ORCPT ); Tue, 1 Mar 2016 18:56:21 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; q=dns; s=mandrill; d=linuxfoundation.org; b=g1WiaxasK5sxceV5jfNcQex9ekM+oFEU3FPzSFuTtLIixpMFDPsjIWvpF7w6MCTQRjav78e8sFhA RMtm+drHqO7DSpq7UC/SFEEEnST4dm2BWKMXxcLbNMTxmEhc7PdbBFYu8ZAPz6lovxVGEhFfUnhH OHPk+JWrPnUuYo17OkQ=; From: Greg Kroah-Hartman Subject: [PATCH 4.4 122/342] dm space map metadata: remove unused variable in brb_pop() X-Mailer: git-send-email 2.7.2 To: Cc: Greg Kroah-Hartman , , David Binderman , Mike Snitzer Message-Id: <20160301234531.898368358@linuxfoundation.org> In-Reply-To: <20160301234527.990448862@linuxfoundation.org> References: <20160301234527.990448862@linuxfoundation.org> X-Report-Abuse: Please forward a copy of this message, including all headers, to abuse@mandrill.com X-Report-Abuse: You can also report abuse here: http://mandrillapp.com/contact/abuse?id=30481620.73cc24446f89405780a9eba1c4a63740 X-Mandrill-User: md_30481620 Date: Tue, 01 Mar 2016 23:54:24 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1147 Lines: 38 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mike Snitzer commit 512167788a6fe9481a33a3cce5f80b684631a1bb upstream. Remove the unused struct block_op pointer that was inadvertantly introduced, via cut-and-paste of previous brb_op() code, as part of commit 50dd842ad. (Cc'ing stable@ because commit 50dd842ad did) Fixes: 50dd842ad ("dm space map metadata: fix ref counting bug when bootstrapping a new space map") Reported-by: David Binderman Signed-off-by: Mike Snitzer Signed-off-by: Greg Kroah-Hartman --- drivers/md/persistent-data/dm-space-map-metadata.c | 3 --- 1 file changed, 3 deletions(-) --- a/drivers/md/persistent-data/dm-space-map-metadata.c +++ b/drivers/md/persistent-data/dm-space-map-metadata.c @@ -152,12 +152,9 @@ static int brb_peek(struct bop_ring_buff 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;