Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1450254pxb; Sun, 11 Apr 2021 20:35:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8qIc0PSKeVvEQn+dVSGcf5Jh36qdyWuviWW/9E7SZz2d8YtONTCf8lMpdO1uRPv0Kds/f X-Received: by 2002:a17:90b:4a8b:: with SMTP id lp11mr26621138pjb.141.1618198554224; Sun, 11 Apr 2021 20:35:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618198554; cv=none; d=google.com; s=arc-20160816; b=AxOEpeaeQ7BRFW3mP7l1opfpy4gN8acKk3Noy3cWmq3UCLJ/FKapCQnrJitAFhxMY+ 18l1VroXg9PEMpKDyNSTdHxCr7I9I+Vch2YWUYXU0H76NHBBycKhdO9PlRBCvroq5Vz9 I3dbJbRYKvV1n6oRjT43iWx4Oghawnmtpmc2jhLYvGZDWIWR0jIkoRRX59+nyO0sVtJf z7Fajfi4K6RmmjOiuFBS4qATqJrCHb7TjVGJSsG267828USSOSB/z+De/YSUAKmhvZId Mhnrn53iIVbaZY20Vf9D9SvzSuNXbFSwZ/tcXQ2A9CrD4MYIyYiJ7beXScDAYWf44CDW RwAw== 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=esfYyess44EEwxzC6hqETttATuGdsk9muqqZlKf+Cig=; b=S2tdazujseYt0ish8Om1KsEF7UvQhoGLFX/x9hExdSQ/xrxC+1xf1KQpYrpHyXY+nJ 1AgE516mMeklxR8gSsfojdQBgoBOghyS6J8VHQfnDz1QsLF4SnTakBeLYfwVCytCreZz GaoDvc70issuhZEaGx7+ko9Z05tPE/H0ZMKo1lLpHjlHhNQwEFPhYG2WBUTt5n50dxTH T6/dRlLUNm9gZuq96hbb6iGXt/NiVlheudf4U9CNQy+KDhfzuldkPNNHH89l9sXGzojm Gla98kCsxKpnzvYQfWxArlzekIvMCm9UwxI8h8CxgFE9dcWedPjtVlCyvhHbMsGRmkTE +GvA== 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 y7si9484707plr.78.2021.04.11.20.35.42; Sun, 11 Apr 2021 20:35:54 -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 S236635AbhDLDDv (ORCPT + 99 others); Sun, 11 Apr 2021 23:03:51 -0400 Received: from out30-133.freemail.mail.aliyun.com ([115.124.30.133]:59805 "EHLO out30-133.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235857AbhDLDDv (ORCPT ); Sun, 11 Apr 2021 23:03:51 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R191e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04420;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0UVCfw3p_1618196607; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UVCfw3p_1618196607) by smtp.aliyun-inc.com(127.0.0.1); Mon, 12 Apr 2021 11:03:32 +0800 From: Jiapeng Chong To: aradford@gmail.com Cc: jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] scsi: 3w-9xxx: remove useless variable Date: Mon, 12 Apr 2021 11:03:24 +0800 Message-Id: <1618196604-101870-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/scsi/3w-9xxx.c:942:24: warning: variable ‘response_que_value’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/scsi/3w-9xxx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/3w-9xxx.c b/drivers/scsi/3w-9xxx.c index b96e82d..1856a99 100644 --- a/drivers/scsi/3w-9xxx.c +++ b/drivers/scsi/3w-9xxx.c @@ -939,13 +939,13 @@ static int twa_decode_bits(TW_Device_Extension *tw_dev, u32 status_reg_value) /* This function will empty the response queue */ static int twa_empty_response_queue(TW_Device_Extension *tw_dev) { - u32 status_reg_value, response_que_value; + u32 status_reg_value; int count = 0, retval = 1; status_reg_value = readl(TW_STATUS_REG_ADDR(tw_dev)); while (((status_reg_value & TW_STATUS_RESPONSE_QUEUE_EMPTY) == 0) && (count < TW_MAX_RESPONSE_DRAIN)) { - response_que_value = readl(TW_RESPONSE_QUEUE_REG_ADDR(tw_dev)); + readl(TW_RESPONSE_QUEUE_REG_ADDR(tw_dev)); status_reg_value = readl(TW_STATUS_REG_ADDR(tw_dev)); count++; } -- 1.8.3.1