From patchwork Sat Aug 10 07:39:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 171010 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp228667ily; Sat, 10 Aug 2019 00:40:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqwAN0Uk+wdsrcP/3N6dKLMA0pAsG/pAozvuJwBXnDLoKDFJ3tKZ/kJJpRpstfsPTrrozRN4 X-Received: by 2002:a17:902:5983:: with SMTP id p3mr13325507pli.232.1565422801104; Sat, 10 Aug 2019 00:40:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565422801; cv=none; d=google.com; s=arc-20160816; b=Cr4XDRnGirQJhbs+ta2Dk2ScPMSRFhtGKiIjcYAxxOka+0Crd8VEPX7Nn6hQl79hn5 1IyT/z0GeVbFY4X/fEVDkkcsTgEFu3OZ+78iq55Qea1io0qhIEdCrASveukc/E+BVD0b 18I+lqMNcRCYfXxnxyxf2NOLAseFUiOMomx5xi/oPmJEfippTEz+YVoJo0oKgasENXFt hbDbTwiz0qAlQtKgVDdq+RNQ/eodOG0445WiISVVlxiKC4RjfodViYPHNrJTOyN7pWDT sEkPEyPjGgUberMg7u+jtN61IDRNxW1wNHuhFnb5zMyVQTKw0t2ohAvQJPCMtAKiwRc7 dSyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=AK/YMa4Udhu0TeTUabdaTm8LRtt+TVVYWot+B288Uf0=; b=JAAsEYBsLBzSb6+MS3zbmR3X7Ej3tvRjQT+JdjExB3Cmb9TPacVYDW1PsAZhSmFkUU yyDrpuQjUiruH8usavejF55kCnT8v/pYDB5CGX2FTNAUf1voHzZ/uoxEs6Oy2hXWDzfy Cs0oJg2aJBynXR94p9RGDGuE9rqJyNZ2V47XnuwPSNpRhZXQpf2i4YhEquXk0XFb5PTl bEpbwJwbsCEvhMyrwMjPlR/OHG8X5yTwWOl6H3iMt+mKjYusCr01vGQiPqmCW8LnHufD v0uQoulf8xcaxnMypAL/gguivEBIJgTK8/ak3jjISVE5mkqH+Bvjz0LyH7NzKUqvCuHs Fhwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=niQjzXtg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 69si15282896pgc.40.2019.08.10.00.40.00; Sat, 10 Aug 2019 00:40:01 -0700 (PDT) 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=@linaro.org header.s=google header.b=niQjzXtg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726147AbfHJHjp (ORCPT + 28 others); Sat, 10 Aug 2019 03:39:45 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:43902 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725468AbfHJHjo (ORCPT ); Sat, 10 Aug 2019 03:39:44 -0400 Received: by mail-lj1-f193.google.com with SMTP id h15so410678ljg.10 for ; Sat, 10 Aug 2019 00:39:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AK/YMa4Udhu0TeTUabdaTm8LRtt+TVVYWot+B288Uf0=; b=niQjzXtgqzrHnuK8XNSSBNRpO2CR/Omb5Zr/BEJArkRu1Hu3aP7NGTrfawQAi8xjNq B63012N1cBSRUQoZfggC60spukhH4XFe9z+CHLd/zTBD+uWvjodx3m4yl+T5SanUEOlI tOwDS2cMYCMt0wSqWgvCEYrBCsMYUx5CD0ljhWRrRAUQZxXesR1EkTLV7I7uOCI4sHWN DVaSPJPjwJwZfjENt0rPA/MXLELO8WXSKwvm5JfHwAfYgCcOamlcbJadtdDxn5PtRW3Q 9f64OMI57PXiPbFmETcrIgaSJpRgP3/ta/cJetbzOGcTg/PtvtZQVILvere+coTyVejG S7UA== 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:mime-version :content-transfer-encoding; bh=AK/YMa4Udhu0TeTUabdaTm8LRtt+TVVYWot+B288Uf0=; b=JiHwlUDR6YqJUOuEa2LTFZVhzaD3c/h3CWaL4fDGlz0E67OcxTMbIUZrHaw2HrSPty 76xuE03JHlqyhQ05vt0FVH83qivOUHAWBHZKGdNIm5//MLSZuUjmpOdRUGbbtvnf4r09 mZ5WPhK7vtjRWKUmhpNFbxKdeK4K2WD9u69b6xXYU2vPezhCV1p9gP1lNIhmVIKrXzea tBqYdc1athT47a2MYmsCqQ+UlK3/Ms7kbWoEOvDwDkwZANSRB7G7r/k6yXWU7I5Gbp0G m+ZTNhpNrBcQqaCes5MBYOl3jKImflIxv8w0+hUZiAAGV40deHoR4EQJBNJ1G0QzTpA7 iPSg== X-Gm-Message-State: APjAAAU38K/U/5/dKf67WLNyLZCe5QvcmWGwhBzOygcgV+QsbIyCaWVo mbUD1CrmxNlAlnMhuuYL/4YjNg== X-Received: by 2002:a2e:9dd7:: with SMTP id x23mr7776491ljj.160.1565422782584; Sat, 10 Aug 2019 00:39:42 -0700 (PDT) Received: from localhost (c-243c70d5.07-21-73746f28.bbcust.telenor.se. [213.112.60.36]) by smtp.gmail.com with ESMTPSA id l22sm19707633ljc.4.2019.08.10.00.39.41 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 10 Aug 2019 00:39:41 -0700 (PDT) From: Anders Roxell To: mb@lightnvm.io Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] lightnvm: remove unused variable 'geo' Date: Sat, 10 Aug 2019 09:39:36 +0200 Message-Id: <20190810073936.28700-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The variable 'geo' is no longer used. ../drivers/lightnvm/pblk-read.c: In function ‘pblk_submit_read_gc’: ../drivers/lightnvm/pblk-read.c:421:18: warning: unused variable ‘geo’ [-Wunused-variable] struct nvm_geo *geo = &dev->geo; ^~~ Rework to remove the unused variable 'geo' and also the unused variable 'dev' that got unused when the 'geo' variable was removed. Fixes: ba6f7da99aaf ("lightnvm: remove set but not used variables 'data_len' and 'rq_len'") Signed-off-by: Anders Roxell --- drivers/lightnvm/pblk-read.c | 2 -- 1 file changed, 2 deletions(-) -- 2.20.1 diff --git a/drivers/lightnvm/pblk-read.c b/drivers/lightnvm/pblk-read.c index 0cdc48f9cfbf..8efd14e683dc 100644 --- a/drivers/lightnvm/pblk-read.c +++ b/drivers/lightnvm/pblk-read.c @@ -417,8 +417,6 @@ static int read_rq_gc(struct pblk *pblk, struct nvm_rq *rqd, int pblk_submit_read_gc(struct pblk *pblk, struct pblk_gc_rq *gc_rq) { - struct nvm_tgt_dev *dev = pblk->dev; - struct nvm_geo *geo = &dev->geo; struct nvm_rq rqd; int ret = NVM_IO_OK;