Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3979235ybg; Mon, 28 Oct 2019 23:51:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqzOAzJPtQgF0fUrlBoB6uhHsq1s9rRXGT+7Z3kRSa+8oQ1LuXa0I7fEO1+F+2vebr6Cbk6z X-Received: by 2002:a17:906:e290:: with SMTP id gg16mr1688800ejb.280.1572331861826; Mon, 28 Oct 2019 23:51:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572331861; cv=none; d=google.com; s=arc-20160816; b=qcSo1zo3cl3JiroYMMxlicy9XHZ0imhx9Vs0KqvFupnfL0x+A+PKkXm5aM2H63h+jp zlM/l8Nvp9PJ/Vd3ZiL7vPS+0z2SPrFCuEv8juScg4FnAJivi9ALrK+xw++Xte84aN12 ywv058tcL+ew89WBa7LI5fOFs5hX02Dw60JfYl8m3RPPF8M9h0DJEZaOosVzSVP1tbVL CJ/AqL6q7G7R6xb4qu/Ia79XOHLLYXu7UoSdTSiJMeF8shm8mGVC6x0+OacJAScua4lK VE3YaoA6UfbnluF5GIXJ34TsNXhTT6JR7Po70i+Fj2prBbTKU3KPQeR/uEcrHKGu0WIb Fz7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=GLvxNZigDjIH0DGpnyLz+xuaagvehXTngUpiN5P3UPE=; b=Y54QKUpProkJjZMsjsLXz6n9wrnB8HC2muWAwrQYAHtnEpFl5LYU7rT3E+to2JC3w8 Cbdtplq/9LvfAgqtl7/qesvaegr3lbTrYnCJtRSivTLwe/CViu6dcYzQ/NFWk7wyRSY2 CxwidjrSMcBC6DOGOVBgDR7cIF9s/wBImOYRR8S2rqp9aCwKBupt7gAkGzYIjBW+8736 sobcDWKN9dq5Dird5spm0mvYcO0dvDmOm00YaAYfH12LJhBeLEm75ddSAZ7YmQiCq3c6 BptuAyFEOg2h+Akez6zwQ+fMprfCYbd6PJAFr6pOXR8Acgl5Z/en/xRhIMJaGTGxXCtM aCBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZYKAltR2; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f51si9194151edb.421.2019.10.28.23.50.38; Mon, 28 Oct 2019 23:51: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=@gmail.com header.s=20161025 header.b=ZYKAltR2; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388519AbfJ1Uy0 (ORCPT + 99 others); Mon, 28 Oct 2019 16:54:26 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:34446 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725867AbfJ1Uy0 (ORCPT ); Mon, 28 Oct 2019 16:54:26 -0400 Received: by mail-pl1-f193.google.com with SMTP id k7so6289046pll.1; Mon, 28 Oct 2019 13:54:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=GLvxNZigDjIH0DGpnyLz+xuaagvehXTngUpiN5P3UPE=; b=ZYKAltR2nlkZSpfM+xj9WQKVKtkVmCLxoyytmDwhgLSaymK9wkdvs9+y+hQJwr2Dxt cfUpBvszqnGopfTmm4UOl1ugzIdRecFrUiWkNsnMO1zMt5UaYjS35tJLBSDovyI/Noey XQ7wPy4VmA7pR3JRToR3ZkU2XlE6smkrX8QGkjhyXfTWEAgr038l2IHzOX4EqcujLrZz IomKgLvcJV66nVS16BRuUDCIhIXAI0nq6o+50K/Gb9QDGZIy6kjN8Fnw1RmDOHXRk+7S ijI94828NKPSXaSAFdDQ6FrJQuHtbwICzeuCD6Jg2lzyaYzjD078pV4GZI0vw0NRl4ky thMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=GLvxNZigDjIH0DGpnyLz+xuaagvehXTngUpiN5P3UPE=; b=L4JOueVD/1Pa6WfjaepVF/ePOnJLXcK3gJpTDv3lSmw93Znh3eJh3bCwsZUUn4nm3g oMY+dZKZctkRIaZmOfhrXeaf4VRQSy4hsM5A3tTA8Wp6Nz0RQMpa7HfySwGbS69Ao76L F5l00/eIHCHMHruNSFSJl9WYxXcSCrs8HcbNq1PhW0hNSXHztauqiep4cULpc1x7F/6S n8jXwdgEnB06k/0yErX4H2uhK/HZnotKdwQaIDv9aMBOo1g+lQBJcGDmovRJbgnpRUIb +N2bsCru7Rc9RdQ1gOxUxDOm7ya3O6IsMSZ5RIgc88uCAHZ7hZJ7nbEwuAGTOrj6Uz9r v9TA== X-Gm-Message-State: APjAAAVLfltfNgPgZjjVKTRC7412UEp+NUrPyexM7HkK3Z/V4XOjEWUW xBhgmppXm2mGK/CI2fHee1frr2Id4zc= X-Received: by 2002:a17:902:6802:: with SMTP id h2mr28402plk.135.1572296065039; Mon, 28 Oct 2019 13:54:25 -0700 (PDT) Received: from saurav ([27.62.167.137]) by smtp.gmail.com with ESMTPSA id s3sm8804729pfm.138.2019.10.28.13.54.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2019 13:54:24 -0700 (PDT) Date: Tue, 29 Oct 2019 02:24:18 +0530 From: Saurav Girepunje To: manoj@linux.ibm.com, mrochs@linux.ibm.com, ukrishn@linux.ibm.com, jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] cxlflash: superpipe.c: remove unneeded variable Message-ID: <20191028205417.GA29635@saurav> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unneeded variable rc as it is not modified in function. Signed-off-by: Saurav Girepunje --- drivers/scsi/cxlflash/superpipe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/cxlflash/superpipe.c b/drivers/scsi/cxlflash/superpipe.c index 593669ac3669..4ca64cdec438 100644 --- a/drivers/scsi/cxlflash/superpipe.c +++ b/drivers/scsi/cxlflash/superpipe.c @@ -1233,7 +1233,7 @@ const struct file_operations cxlflash_cxl_fops = { */ int cxlflash_mark_contexts_error(struct cxlflash_cfg *cfg) { - int i, rc = 0; + int i; struct ctx_info *ctxi = NULL; mutex_lock(&cfg->ctx_tbl_list_mutex); @@ -1252,7 +1252,7 @@ int cxlflash_mark_contexts_error(struct cxlflash_cfg *cfg) } mutex_unlock(&cfg->ctx_tbl_list_mutex); - return rc; + return 0; } /* -- 2.20.1