Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp496583imu; Mon, 5 Nov 2018 04:27:32 -0800 (PST) X-Google-Smtp-Source: AJdET5c5YJmqcJz+/TnObBSaIjCihQwTpZMAmtFLu3a7xWaYs5gBrfjJEs4H1qtfZuyQvVQHbMV/ X-Received: by 2002:a17:902:e00a:: with SMTP id ca10-v6mr21456788plb.166.1541420852057; Mon, 05 Nov 2018 04:27:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541420852; cv=none; d=google.com; s=arc-20160816; b=Qa9tKhS+sDnHP07z6V2JzIJ8AcvfZBKLZEqCqqM6boS1wxagGeI1Whks8/YgnWwOzS 91ZHXQ1iiKuCdoO4Tpu6a1vOe4cSFMNwUmtwLSsW0h+h8vLhu9GWPpShFV9Nyk/GUY2c Jy9koixmij0qX/vi+RFj6guxYIhHPUuhj/oOStTXOhOyv1GnkA2tHNAfWaF+23TU/+j/ cQ2x474wVlFZZqA/NjrYVT2qAk403B7FHxLKdvJBFRioUpOHCeUAF2ihlXinmVWKia3R bZf0iPWBGDZ4fvtJ1asUZxMgAvHMd01E9kzZH+Zphp4ORksywagDBEjcv+qcLVifzggo EqRw== 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=YuGGm/kvIUR64EfEJF8Xc35VgZELoo5NN5dE/gXYmfQ=; b=KpaP38HHU+02wKIzle45JgSX1NbnOtMtY088hEuyEbIbCDKaxzN0+rokpbo9emQeGD OALhB8lTNDWir2L3t9BZ6eyWS/afiys5IZwVMJN678kNEATZNQHbaJQUE8gTQwClx9rO z0mkkD8hZgKlSEtwtd++ZZxzo4uojBkY5hDswag3EG/kSJK46DkOTBi9WzDXMKbEn5PG fotpk74/7hzrKGyXR4fw4j3TCLBQgKS/OZb+HTHEeQ7oFkkRPjGXwoE9AtzErkgsAROU RCV5wMr12a0FG9D9JLO0ef73MWstMGT8sqqYhh5onsg91bfdFh/VFstDQ4VNbKWd3Oed y+qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@owltronix-com.20150623.gappssmtp.com header.s=20150623 header.b=nwX8goWL; 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 x33-v6si35926604plb.49.2018.11.05.04.27.15; Mon, 05 Nov 2018 04:27:32 -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=nwX8goWL; 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 S1729795AbeKEVqW (ORCPT + 99 others); Mon, 5 Nov 2018 16:46:22 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:36553 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729656AbeKEVqV (ORCPT ); Mon, 5 Nov 2018 16:46:21 -0500 Received: by mail-ed1-f67.google.com with SMTP id x2-v6so7326018eds.3 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=slodq5I3prWp+2kt7j7rxiXnwcmknskkLGqVG0R3hUWqB0yHZ77u+YwRTC54HPjN46 1dPkTRG++XPGC3+Fgkqyf7pt3J1VQd9epxOlvXlfFOh3benzq6n04+9Zbu4GUvBofWk8 k6DcTUZp90bIgIOHJpXVc30p2RZo0ybjWMAJEt4Bz9M3QUoTEHOOCsiW3kaz8956Ul+n JiINSdjL7S51dAjnyQafAGbaWgyt7ecaAYEJBrVXbmfxWPbPZ3jBf6RO3eVzNzLn7OwS +XLL3S2jffIEOxnj85XkozHgfe6Mjx7ijZ/74NfFOesMOPEjxDDbhdUmMjgKa1M7RPYG uj6w== X-Gm-Message-State: AGRZ1gJNbs9LDofcxQ1gut3UZT8gGqFTAvYV/xX0zUSM10XffOxuTmK8 zImSu2/9dNX78oeEYozM9ksqhg== 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-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 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 */ -- 2.17.1