Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp275419pxf; Thu, 8 Apr 2021 02:52:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuSpT8itgj0J0AnOR7amKM5YG9aaeJFfLhIrRg1Z+Vwd8PHs9zJ7qrTjCgLsqnNNZBNCvA X-Received: by 2002:a17:906:9b2:: with SMTP id q18mr9227344eje.147.1617875575103; Thu, 08 Apr 2021 02:52:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617875575; cv=none; d=google.com; s=arc-20160816; b=J0vHFghPzJADHajEt4ILTKfr8lf9YFP1hPjZcdGStdLJHtEYRzoJsLjuzbIQFW5CuJ ZGFhwalAjALNC1vEKsTl26rRXq+sFGkp3dVN1ObIuOOk1kq4MprwnRw4ZXlUizkO3/R2 kTcwUNeIQUioZk45bq/q+gG1g93FY3rF0yvlINOm1A/wQcSHxA4qkNMHsLL/n/y6cnEQ LbBqxHfisF4tXAcw6eyeI4PTPG/7O23pCgAofs7opBGB0xWDqK/qNKv6QwD/P7IteKGE O4RvEMbOVpJRqbalDNPPXvbOprGVHY4nGuSKbEAhZNTgwufOT94lhe7hyw1Ximnoo9tF P3pA== 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=MCZW4KAw+CzLx6RMBUZO1630Vv4HC4cWmkdJUu37YxM=; b=RxdWQqpNYLvn3Mro3+t1WlcT4XuHAa07a/xxB/XQVLKMoZ5eCLUMoRg0EMmaSrtknh 9tlcbC1Yhwp5d9u2aHKRjS+SpIGVs9poDT+K5GUH51XGxlSV1ptr/X9tcYF9ZLwUf8zq reVb2nep5bKTy4d7+/Iqvlh9L15JpxvS5iakwQY88Lm2cbXun48l+5gdOkz/vUHdfksq UWEP8q7YcIBbbW0nC4ATD0y+oMmVBs7oyTFnw4ZqCDkHCiKUh7obYEvkZomauo4ORHwX kUWyqemxZXaxgyeJiup6w0268I65/o0417/iX6ujII0FystL0oN27zn+IaOzt2OfJUB4 vZpw== 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 c18si21397546ejr.332.2021.04.08.02.52.32; Thu, 08 Apr 2021 02:52:55 -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 S231158AbhDHJvn (ORCPT + 99 others); Thu, 8 Apr 2021 05:51:43 -0400 Received: from out30-57.freemail.mail.aliyun.com ([115.124.30.57]:59022 "EHLO out30-57.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229686AbhDHJvm (ORCPT ); Thu, 8 Apr 2021 05:51:42 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R821e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04400;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0UUsn2It_1617875480; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UUsn2It_1617875480) by smtp.aliyun-inc.com(127.0.0.1); Thu, 08 Apr 2021 17:51:30 +0800 From: Jiapeng Chong To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] staging: ks7010: remove useless variable Date: Thu, 8 Apr 2021 17:51:19 +0800 Message-Id: <1617875479-58849-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/staging/ks7010/ks_hostif.c:929:19: warning: variable ‘noise’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/staging/ks7010/ks_hostif.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c index 8bc3b7d..499161d 100644 --- a/drivers/staging/ks7010/ks_hostif.c +++ b/drivers/staging/ks7010/ks_hostif.c @@ -926,14 +926,13 @@ void hostif_bss_scan_confirm(struct ks_wlan_private *priv) void hostif_phy_information_confirm(struct ks_wlan_private *priv) { struct iw_statistics *wstats = &priv->wstats; - u8 rssi, signal, noise; + u8 rssi, signal; u8 link_speed; u32 transmitted_frame_count, received_fragment_count; u32 failed_count, fcs_error_count; rssi = get_byte(priv); signal = get_byte(priv); - noise = get_byte(priv); link_speed = get_byte(priv); transmitted_frame_count = get_dword(priv); received_fragment_count = get_dword(priv); -- 1.8.3.1