Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3570082ybg; Mon, 28 Oct 2019 15:08:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5CYoC2XUaFf4HSKOCA7FZ70p5LmgCAKNQtHCuKOZ5nM2a4qWgTTrPS6Xq/wtR3hqqOckt X-Received: by 2002:aa7:ca59:: with SMTP id j25mr16956867edt.196.1572300526306; Mon, 28 Oct 2019 15:08:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572300526; cv=none; d=google.com; s=arc-20160816; b=qZXoXy/zsYQfHYYDgxROI3oYNZGhP+r64Rlq/+qgHTLHa2PQJ42GWP5JFYaj1ra/3z CmCxGAKklkLTNArPV6TNXy6RRUjgKoq4i9vXvfQ3bKbg/5ORoNtqh8bx9tmLNtIQF8pU HiH6wa4LWoBZzvmeHhk7cjO2RlusmkN0Dndh+BqdpKBsRgIQAL8eF3mCvcLeOOUVqRoE UfHZonOnlANNA0Ito5vo7jZomwt2ybnIXbmEw0jcSD9c9sKWCRQkBV86Yi31sjcbDNNK vvjTUrAXaLq44U4G1+WHkEYoBKGnhu+h7aSeI4nF9MrRrGnQEjr+499A+67DcF3kSAxs 1HtA== 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:cc:to:from:date:dkim-signature; bh=mUUwYm2J4X9AJ/m0x6sMLtjI+0msH+IroBSGwyonZQg=; b=JlMrxbuhh+Z8KqXfSAPOHCBpznGvBSeRIanyky4ALKVegdb1kGSY4vVvJr91LwOTlZ iK5zHYDFfQwxE5g1FkiRYGDjTn4cfJGmhwn6lZAE7KjMJHGPkXaay3Yw4ofMdsK81pCX atAyiXO9B4s235Zfw/r2Gi/68yUXYThBdjy+7XmcDUSDd34z6l1iSXShgpzzcGNAHOcj Vd8Dnr1jav959hRdeAF6fFRphuTjvvcqpMrENn/Yl6742gK+Yk4imx436Nx5laj7nPzx iUbDTQxo0tNps+u9L8YjepohkUYwpNr87o0z0nj39NGFWlEsW4gmo81xmRoBvxIifl23 BhOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Kr+58qlw; 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 u1si7243509ejt.18.2019.10.28.15.08.22; Mon, 28 Oct 2019 15:08:46 -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=Kr+58qlw; 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 S1726675AbfJ1T6y (ORCPT + 99 others); Mon, 28 Oct 2019 15:58:54 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:44493 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725776AbfJ1T6y (ORCPT ); Mon, 28 Oct 2019 15:58:54 -0400 Received: by mail-pf1-f193.google.com with SMTP id q26so3999177pfn.11; Mon, 28 Oct 2019 12:58:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=mUUwYm2J4X9AJ/m0x6sMLtjI+0msH+IroBSGwyonZQg=; b=Kr+58qlwc2ermSgdCkMendRK93dGnsQ9/wcP+2QXe/ZhgaKwKYBHjpXqbKD0s+/i49 wqCOQIRuPqk4i1wpLLZlD6DdrUqRixVQyNe/4u9QVfCwiAZ/jTFaM6AC+XBVTn7+FYW1 oWSX46ptaB74p2i76Z1aB/q396JNSy4hfgOJYPy+fsUuyfzJwffFI/AQVuFGzucvIyOV hEOIfIIpoRDnDxAyLt6A6UmJImPw+FDV8xPUPAzDCTXb5YZ9/6Z9fW+HbZtPm3hZdanV zEdkG7sk4etqQXxYYM7wDTIxHwWeUSPd6x+em0hFXw+3BjvTWI8oZG/fcoWIiuOmo0Gr sNFA== 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:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=mUUwYm2J4X9AJ/m0x6sMLtjI+0msH+IroBSGwyonZQg=; b=j1A3hBxyI7WiaQY/2pUFOSlxjn8B1OQUj6VSk0doXLX9aNi5akxe4NiBQhsNXIRTWT r4ldGptQmSD2ToxMib4z3LyB+OpkDjB5JStiQffb01JdONV3ZwoOB3uWBHPeUH08/uBp LfFsfLUmt9I9GVibAEPAAzhNAv7oQuKL8qPMOK2K2Q9XhTxNicUhewycc/nqrNgfKaPx EEv9+2Z5H/50zlAxyu9wHOTtGKi/4SjaxvIP4bsUzAhYRh6tS226kcP32n7B6QAdckbl AcbyiBtunaLSIIiaLDI1uBA2cmrmQ54sZdmV/PfmuoGRS/vG1zfi0Zmv0kKj3b1z+x7H gyxQ== X-Gm-Message-State: APjAAAXni5ZzTqU0dsGDD4Ev1uFqFjZVfq/pk7ZFnt1Ot+fsL7eRVwtZ RGfTYAmOdyrqMgW+XXxVUgY= X-Received: by 2002:a17:90a:9201:: with SMTP id m1mr1376390pjo.74.1572292731971; Mon, 28 Oct 2019 12:58:51 -0700 (PDT) Received: from saurav ([27.62.167.137]) by smtp.gmail.com with ESMTPSA id x192sm12472924pfc.109.2019.10.28.12.58.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2019 12:58:51 -0700 (PDT) Date: Tue, 29 Oct 2019 01:28:44 +0530 From: Saurav Girepunje To: QLogic-Storage-Upstream@qlogic.com, jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: saurav.girepunje@hotmail.com Subject: [PATCH] scsi: qla4xxx: ql4_init.c: Remove Unneeded variable status Message-ID: <20191028195844.GA28740@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 status in qla4xxx_process_ddb_changed() Signed-off-by: Saurav Girepunje --- drivers/scsi/qla4xxx/ql4_init.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/qla4xxx/ql4_init.c b/drivers/scsi/qla4xxx/ql4_init.c index 2bf5e3e639e1..8942c48740cb 100644 --- a/drivers/scsi/qla4xxx/ql4_init.c +++ b/drivers/scsi/qla4xxx/ql4_init.c @@ -1167,7 +1167,6 @@ int qla4xxx_process_ddb_changed(struct scsi_qla_host *ha, uint32_t state, uint32_t conn_err) { struct ddb_entry *ddb_entry; - int status = QLA_ERROR; /* check for out of range index */ if (fw_ddb_index >= MAX_DDB_ENTRIES) @@ -1189,7 +1188,7 @@ int qla4xxx_process_ddb_changed(struct scsi_qla_host *ha, ddb_entry->ddb_change(ha, fw_ddb_index, ddb_entry, state); exit_ddb_event: - return status; + return QLA_ERROR; } /** -- 2.20.1