Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp249168pxf; Thu, 8 Apr 2021 02:08:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbfq6pCgP/qU+ryDjQMrIK5UicmQ59kXQC+B8b3isgr4rhNruRcnmrOLaaDF7B7kkkXST6 X-Received: by 2002:a17:906:2504:: with SMTP id i4mr9056978ejb.115.1617872887515; Thu, 08 Apr 2021 02:08:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617872887; cv=none; d=google.com; s=arc-20160816; b=pWgKzkfYXurk7ko/jo3xNfxS7Ooio/RK266zxEL71DyBtZ6ey3oAYxErS6JldePlC2 jnNRnoch+mgZwT5kwyq8n1qL9Ca3nTJaDwcdskO6y7vSofzx72gX1VudR7nVSYu0EiAh p2Xpid6HMjk02ycRIWCw8BzFBVpTDUS2VPgIFUdAMC9XFmANUN3Zrv4sM9uQedQACvTC UeQJOntBhViDA1Zft1tUahzAfojVCvXV9SsSrcMRYMb8gGFU65rQ1iTfe+mVYUh9IAxh EHy4qpfNyvFBhzX5jsa0T+fcJ9dOzkmiE0bEdMj06S3VQ7S29NET4xvNlDox5xLWdQS/ vyFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=EuVDX8n21gSXaK8FRshaveBsrsngIRi5ADTWBIIPXWA=; b=QBHYlB/E02avrkTI3AJDRgQMP55cZkroG9C8K2oa7e6seDgkLMXkj+wHZSgHHUh2K1 5wMz20UyJ71sHgT4Klw5+4MxQmEnEADN8am2Bf2ZV0GUMmsa7a2J7uee3epiIYdQmSu9 6i0PkKYZYgiC64j1L6sXiyGt4nU6ZpUQGLdccFU9vYaXN+wAcfjNPr86dGic35a2yAC+ 6l5Au42qvyTKnYWYXaEEYUjhbZe8R+V/VHQWQGAcESyyIOEkBSSUFgoSRXEmAnDRtRAg VEdkP2FiVPzRR5lZnZ27KXRvbUSpmR9eXZ5nguHQb/S9QV6oeNzJZk2FyKQ174kW5k0Q cTGA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n7si22119293ejl.155.2021.04.08.02.07.44; Thu, 08 Apr 2021 02:08:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229805AbhDHJHC (ORCPT + 99 others); Thu, 8 Apr 2021 05:07:02 -0400 Received: from out4436.biz.mail.alibaba.com ([47.88.44.36]:43842 "EHLO out4436.biz.mail.alibaba.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229600AbhDHJHA (ORCPT ); Thu, 8 Apr 2021 05:07:00 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R651e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04426;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0UUspZKb_1617872787; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UUspZKb_1617872787) by smtp.aliyun-inc.com(127.0.0.1); Thu, 08 Apr 2021 17:06:34 +0800 From: Jiapeng Chong To: sathya.prakash@broadcom.com Cc: sreekanth.reddy@broadcom.com, suganath-prabu.subramani@broadcom.com, MPT-FusionLinux.pdl@broadcom.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] scsi: message: fusion: Remove useless variable Date: Thu, 8 Apr 2021 17:06:20 +0800 Message-Id: <1617872780-126448-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following gcc warning: drivers/message/fusion/mptbase.c:3087:9: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/message/fusion/mptbase.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c index 549797d..f37ea06 100644 --- a/drivers/message/fusion/mptbase.c +++ b/drivers/message/fusion/mptbase.c @@ -3084,7 +3084,7 @@ static int mpt_remove_dead_ioc_func(void *arg) int req_sz; int reply_sz; int sz; - u32 status, vv; + u32 vv; u8 shiftFactor=1; /* IOC *must* NOT be in RESET state! */ @@ -3142,7 +3142,6 @@ static int mpt_remove_dead_ioc_func(void *arg) facts->IOCExceptions = le16_to_cpu(facts->IOCExceptions); facts->IOCStatus = le16_to_cpu(facts->IOCStatus); facts->IOCLogInfo = le32_to_cpu(facts->IOCLogInfo); - status = le16_to_cpu(facts->IOCStatus) & MPI_IOCSTATUS_MASK; /* CHECKME! IOCStatus, IOCLogInfo */ facts->ReplyQueueDepth = le16_to_cpu(facts->ReplyQueueDepth); -- 1.8.3.1