From patchwork Mon Nov 5 12:26:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Holmberg X-Patchwork-Id: 10668119 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E5D481751 for ; Mon, 5 Nov 2018 12:26:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D623A294D9 for ; Mon, 5 Nov 2018 12:26:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C9975294E1; Mon, 5 Nov 2018 12:26:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7FEC3294D9 for ; Mon, 5 Nov 2018 12:26:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728798AbeKEVq1 (ORCPT ); Mon, 5 Nov 2018 16:46:27 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:44808 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729742AbeKEVqW (ORCPT ); Mon, 5 Nov 2018 16:46:22 -0500 Received: by mail-ed1-f65.google.com with SMTP id n19-v6so7282338edq.11 for ; Mon, 05 Nov 2018 04:26: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=YuGGm/kvIUR64EfEJF8Xc35VgZELoo5NN5dE/gXYmfQ=; b=nwX8goWLq3/PU7hl5yIl5XCHNBeAuz+lAhtBRv3n/duhlL1+pQF+6w4xp1o1bstrSr iFQs5y6LnShfnER9RY0T3SHr0aq2r6/exFAvhP/oTwQ74hN4mAg9ZEE2rfufoIUnfWA/ chNDlQVKoWqmQERj/b3Q8dTOSD7YYAm/FSqMTzH7XTEDDFPWqqG5Ls1KxXTERq3jDxZb kNhOSu6nDojy5kY61oNDFdzZRFmVGNsAqsZFFOaimaTCoyHrRh3xDC0l7pOpUuNucImK q10tR9ybWG4Gik/F0uaJp8cy8UMLveIu1LtodB0bE/Zz1h4pLzELOk87oxDuKkSZMnJV po+g== 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=YuGGm/kvIUR64EfEJF8Xc35VgZELoo5NN5dE/gXYmfQ=; b=dX9GZxcly725vcsDwSgEQS1mXN6DMvwo5G02zchGQhzKES+MXDbV3a1Aljm8kZjlUY erlxkbRHXNTvKpC1orpAmldwSthlRSjoHuKV/d6zVZklqRiKqFoboExyL4cz9D7e+6gK ywFLs8BoAtdYFiwQ6+372nH46f2mTm2xGG789A3MkhMOhu38CwZcoD11FrmSIyoTuTzv hW1EP6IH1mbP3asr14QkMco0QWukMFLHIUZFtHHAKCBUEcr77SFguZTrEPVtmdC4XTkf v3yfbz7rXUSe4r72PsvLVGuHpMWFC8/oGbrXJkN7jIWpgq8fK2XTzSf3RYYVDFIZ6lG8 AJDg== X-Gm-Message-State: AGRZ1gJS/veNMR8G9YlbV765U2osjLP3JJqohkSi3bMU0KyOQhm85jFB JOiqtsoI5m6O/gvxNzAvijnUNw== X-Google-Smtp-Source: AJdET5da6wVH3UMraaSgSs5yZ++UmAaFYT79I5Gg1ALa7WyijnT/p9bIB9eMESz3iVNyu23gdbMyIQ== X-Received: by 2002:a05:6402:170a:: with SMTP id y10mr18358000edu.45.1541420810433; Mon, 05 Nov 2018 04:26: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 9-v6sm7046056ejw.46.2018.11.05.04.26.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Nov 2018 04:26:49 -0800 (PST) From: Hans Holmberg To: Matias Bjorling Cc: Javier Gonzales , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Hans Holmberg Subject: [PATCH v2 7/7] lightnvm: pblk: remove dead code in pblk_recov_l2p Date: Mon, 5 Nov 2018 13:26:10 +0100 Message-Id: <20181105122610.1555-8-hans.ml.holmberg@owltronix.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181105122610.1555-1-hans.ml.holmberg@owltronix.com> References: <20181105122610.1555-1-hans.ml.holmberg@owltronix.com> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Hans Holmberg Remove the call to pblk_line_replace_data as it returns directly as 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 */