Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1860816imu; Tue, 6 Nov 2018 05:34:36 -0800 (PST) X-Google-Smtp-Source: AJdET5clwn3/uhGesegjrCyJmhiCxene1P2D95RqMcsMAMVlAky27hpdCiqgpFhEj8DGXMoiiu7L X-Received: by 2002:a62:b09:: with SMTP id t9-v6mr26293587pfi.36.1541511276398; Tue, 06 Nov 2018 05:34:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541511276; cv=none; d=google.com; s=arc-20160816; b=M6VyCQMaaHwlOuM9OFs3oGE5IXrUnAT8nN+4QcobHbylQXBEZszEKMOZ5Brvd45anY GwozL2CvUmoYlURx48KhRMjvM5RTcOt+ko3u9wGzmz9wGbhpL0NpaxGqjEKy41QXQWCy 0PpippdNc/vO/XsqcT4uS36x9A3Mr2+2qSC76vBbbdA8XpGhqF/rdEueoQPyocTyzgdb J9/pPREnl5jDIurQv7leM31ngetq5C9kbUFEEgA1VCTPnb5QKJjAA6jYubttWfj454fc 8d+niupc71ni2WVNE3/TADAlIiTg7X3yuYSsIwMInPKAQgFwyABNk3aJDJnRHLsSQDk3 ydfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=im8NeFbgzA6SbKu0U4oV8gAJiI5O2suBuQF856AHMAw=; b=I692ovqdomBcoVw0SpTzCRmmsaOon1qTS/n0fNU6/bWyWBpfoq+zp+5i/OKR442e32 qrkAaIa4XcV9AaylKixiwl/tmRNvwzU+e5MCzxAQDIl59G+fsbrQVV3VwiaXf2PxUK3n ZvDiELzqbRX2NPNoc63k985aE8Umvxn1XSl9G/JME6CSijTCsLMKpMTROWDRCauwI86W gsC9hG/ubiUjA1bIrRo5PtfHl+32ILKl1iG+qXvlVH+Qc0/5dPxCuRPGzDnNbSWz4p7x AA1bqnYbE+CqlU3OdtNWey8zCZyZg/T/TfrKmsJEg3OEwfkN9sQS+XXO9wCsmxUO32vV Q05g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@owltronix-com.20150623.gappssmtp.com header.s=20150623 header.b=kj9Zxz7G; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t3-v6si11693888pfl.107.2018.11.06.05.34.20; Tue, 06 Nov 2018 05:34:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@owltronix-com.20150623.gappssmtp.com header.s=20150623 header.b=kj9Zxz7G; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388460AbeKFW7H (ORCPT + 99 others); Tue, 6 Nov 2018 17:59:07 -0500 Received: from mail-it1-f193.google.com ([209.85.166.193]:38389 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388425AbeKFW7G (ORCPT ); Tue, 6 Nov 2018 17:59:06 -0500 Received: by mail-it1-f193.google.com with SMTP id k141-v6so15766068itk.3 for ; Tue, 06 Nov 2018 05:33:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=owltronix-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=im8NeFbgzA6SbKu0U4oV8gAJiI5O2suBuQF856AHMAw=; b=kj9Zxz7GZStsQLPH3kPSTiGkZXstVtaXHmqS9oo0vKZ79ZVFZ9zAGgQgdGWLGQedVO 9uri9OrQ5MxMyYcupktu8whM4qeV96s2qjeabX+sm/hGPpIC6UBo7B5weCk+yW8ySNds YbpCR0cBfgvior1wKBWRajXIm7sY+7BSB3blDSwrPGxYPSCprQCaZEhOU0JMzaSAXUEy apiQPPsyCTP6i8PojxYAdunsuRmN2S4WCk0oBGAeHGkbS8YFA3zg6TNnS/U1iQTvhtS0 lkTvV+LF1rUzmCVjr/jEAqoTHu5PvEhQ5zR6DDZueo7KSY/VNj9E/V6dOmo1VHYUsh/e uA7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=im8NeFbgzA6SbKu0U4oV8gAJiI5O2suBuQF856AHMAw=; b=MmL46rs8lVttQqAdeUBVsIbGJA9Iu2Hyuwf2Dxjp5Z+/gNEL2YP0R0zP0SlPQDSKNq gfWw7lFDm3WMEWJXJnO8xbeVmLLwHy11Qau9IBh1slvJv24I6l5dozjl0VcYEJD9vGRw Q2gbVRzXfFdRHF7mG/Ampx9hNyDhGmwVye5fJC2H7j2XNACaxLjQvsDfAcXwe0y3i4VZ erAfjX43Xe2AjgYr29Iq04Y7LPWJhGuTX/vGaJdVNzLMlhNigW19f8hRCcBKGLucqoLS KRFPZlemJLtL/cfGKsXBNpjZX0bNkm6/qUAUQBSQmMGhUFKFLxxL7UZxaQdPGmkQEGOd DGog== X-Gm-Message-State: AGRZ1gJ7IeMxAKX70CjLcvIqlknAVUEv59SuzjpF082EiV3xLUw5CeYN aea2jwlyMKl3Qu6G0t5H1zSaKw== X-Received: by 2002:a24:81d7:: with SMTP id q206-v6mr1764195itd.94.1541511230985; Tue, 06 Nov 2018 05:33:50 -0800 (PST) Received: from ch-lap-hans.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id u132-v6sm897282itb.21.2018.11.06.05.33.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Nov 2018 05:33:50 -0800 (PST) From: Hans Holmberg To: Matias Bjorling Cc: Javier Gonzales , Sebastien Boisvert , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Hans Holmberg Subject: [PATCH v3 7/7] lightnvm: pblk: remove dead code in pblk_recov_l2p Date: Tue, 6 Nov 2018 14:33:30 +0100 Message-Id: <20181106133330.26570-8-hans.ml.holmberg@owltronix.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181106133330.26570-1-hans.ml.holmberg@owltronix.com> References: <20181106133330.26570-1-hans.ml.holmberg@owltronix.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans Holmberg Remove the call to pblk_line_replace_data as it returns directly because we have not set l_mg->data_next yet. Signed-off-by: Hans Holmberg --- drivers/lightnvm/pblk-recovery.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/lightnvm/pblk-recovery.c b/drivers/lightnvm/pblk-recovery.c index 0fbd30e0a587..416d9840544b 100644 --- a/drivers/lightnvm/pblk-recovery.c +++ b/drivers/lightnvm/pblk-recovery.c @@ -805,7 +805,6 @@ struct pblk_line *pblk_recov_l2p(struct pblk *pblk) WARN_ON_ONCE(!test_and_clear_bit(meta_line, &l_mg->meta_bitmap)); spin_unlock(&l_mg->free_lock); - pblk_line_replace_data(pblk); } else { spin_lock(&l_mg->free_lock); /* Allocate next line for preparation */ -- 2.17.1