Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp2282214imc; Fri, 22 Feb 2019 23:28:00 -0800 (PST) X-Google-Smtp-Source: AHgI3IbQNs6BhjUBaCxYFrqu2QpcRntF0hZWBEu51BwcJF+EQkdujZbP2A7TOWKvPqAmNWCh81G2 X-Received: by 2002:aa7:81c5:: with SMTP id c5mr8387651pfn.217.1550906879935; Fri, 22 Feb 2019 23:27:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550906879; cv=none; d=google.com; s=arc-20160816; b=rFu91+sU/JrxPNSJk1wL54FATVfgbqCWj10Thg+og+LvLt+63E/VAXv0U7eN4FDxSE KSd7ogYU3FwKeHzN5jIdMyDGap0wvvPDGJ7wCPFLCGt1BbZ0peaBEIiovOffA/LDbwG0 g+LCyiRw5JVBuounon0rH5zKxPHVXiBEtic2AHHQc1eInsSFKSGs+zaVCpalgyoX8dsd s+++wt8iymERg/u9aBVjryW7cgCYksO6UIXj5XuHcnU16mRJD5unWHrqEKqayfbdxidQ ymoaSPXzx8KMOPbSxLPE/zrNwObjRh8ZhNJ1/WtphEvz9OfnjE0uAa2IAW6RjKRaBHRo fdiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=LWQee6Hw+ubjDtsbZ5j7CoUHAe6PWxxWUM19c6x5AQM=; b=fC4rZNkZDNh/0s90IZ7d91FYndPzLNDW7Y880LJ/5wqJZbFp8kWAQSMwGnxmb7V1sf YB9oeUQ96zqqhBKvc4UyFK6hMS+h3pTN0vWg5qbD9dz/14RTx50iINVyjCCb8TIoEyKy 4qMh0m5zrgHu1qcLetIibTy5HcZd6NjcvOvf6eQKhX067bk6dp/6+JYHzBpU2QkucMe2 YLVPiIyxHxdz1b8ninKrG+EjkYSp1ZYdc6w3IE56c2h5kkzgi5YGGU2P8Mog6AU0oDD8 nn80BPf5IKhwt5hdUtVus97aAJ8h6j7NRxxnkZN6dVh4g8AW1m1NK5+VNTau1BqWy/1x lhcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YHwg2bSg; 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 g6si3201981pgk.478.2019.02.22.23.27.42; Fri, 22 Feb 2019 23:27:59 -0800 (PST) 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=YHwg2bSg; 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 S1725886AbfBWH1U (ORCPT + 99 others); Sat, 23 Feb 2019 02:27:20 -0500 Received: from mail-yb1-f194.google.com ([209.85.219.194]:34836 "EHLO mail-yb1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725785AbfBWH1U (ORCPT ); Sat, 23 Feb 2019 02:27:20 -0500 Received: by mail-yb1-f194.google.com with SMTP id d9so1716812ybj.2 for ; Fri, 22 Feb 2019 23:27:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LWQee6Hw+ubjDtsbZ5j7CoUHAe6PWxxWUM19c6x5AQM=; b=YHwg2bSgR5dWApjaRsy6psIv0USqpBHADAXv6Nckx7O8fG7CHoLFMo6Z3+dzwvh+TC tH9TMECo5/S3Rg3a0MA/y9H89z+pj5Jtj3IKvXpYCoT8krig71/aDeCouLWiSMGpbzVA 1mS3s4Vnez+eaI4lK1s38ikl3dw04feBCpZLKGiPKUNtAIvgjyHiuZmYXH0wJL+Ag0/6 ANJCP/DDOeICYyeCGEVLz1Spm8fz4XBU/lQxvlqh03Q6ZNZVm39bQmBAJTa6jQKj87zF 9Egcu8MhP2LSFGLhmCAYCd7KwEx+qkTzfr2C/DzKo1c8UtLIcQBFqtTALcVD7MltghMv StEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LWQee6Hw+ubjDtsbZ5j7CoUHAe6PWxxWUM19c6x5AQM=; b=IlurKXgcy98uOODoBzLQImbcEyZsLxHUvOhgS8b2cLBvX5c070btB0O9yl2Va2PALV XdIbSg+LKzJdpcIhFONiWjmru8EK0/QC2uOQWgxGYBU8f5vEsMgUM9qG4jMXdiCYaW3h LxkPjwHNo/Lm2iczKt/zr3HVLENOGAi1Fn8xle8yythFSQ7auUcnZEFVjvF4PP8Pl39b a9IHOW88cuJc//Sn6PY3ufFzwN1Dsvgu2kijV9D7fQI1ryOaUO+/Ed4fo+F8mfz8ZJEw 5I2tYW+HmGIPLWS0BQS8boTzQs7dRT022k8TLAH4MldM9kMZShfpHeOan133GTj6r65g Fe0g== X-Gm-Message-State: AHQUAubb3JqKTa4ibKtDoI4Kg6U86CaS39LISyqKZLjVXRAPHXfFqJ9j ZS7ZVyLEOJNSEaUUPmfU3vCPnWw93Ic= X-Received: by 2002:a25:c804:: with SMTP id y4mr6637091ybf.429.1550906839175; Fri, 22 Feb 2019 23:27:19 -0800 (PST) Received: from localhost.localdomain ([191.101.9.198]) by smtp.gmail.com with ESMTPSA id q185sm1234634ywb.15.2019.02.22.23.27.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Feb 2019 23:27:18 -0800 (PST) From: Bo YU To: gregkh@linuxfoundation.org, sergio.paracuellos@gmail.com, quytelda@tamalin.org Cc: Bo Yu , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, yuzibode@126.com Subject: [PATCH V2] staging: ks7070: removed unused varibales Date: Sat, 23 Feb 2019 02:27:12 -0500 Message-Id: <20190223072712.18422-1-tsu.yubo@gmail.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bo Yu Compiling the kernel with W=1 results in the following warning: drivers/staging/ks7010/ks_hostif.c:465:6: warning: variable ‘mib_val_type’ set but not used [-Wunused-but-set-variable] u16 mib_val_type; drivers/staging/ks7010/ks_hostif.c:464:6: warning: variable ‘mib_val_size’ set but not used [-Wunused-but-set-variable] u16 mib_val_size; drivers/staging/ks7010/ks_hostif.c:786:6: warning: variable ‘result_code’ set but not used [-Wunused-but-set-variable] u16 result_code; Remove these variables. Rebase on next-20190222 V2: fix patch format Cc: Greg Kroah-Hartman Cc: Sergio Paracuellos Cc: Quytelda Kahja Signed-off-by: Bo Yu --- drivers/staging/ks7010/ks_hostif.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c index d938b0997a53..913d8996437a 100644 --- a/drivers/staging/ks7010/ks_hostif.c +++ b/drivers/staging/ks7010/ks_hostif.c @@ -461,13 +461,9 @@ void hostif_mib_get_confirm(struct ks_wlan_private *priv) struct net_device *dev = priv->net_dev; u32 mib_status; u32 mib_attribute; - u16 mib_val_size; - u16 mib_val_type; mib_status = get_dword(priv); mib_attribute = get_dword(priv); - mib_val_size = get_word(priv); - mib_val_type = get_word(priv); if (mib_status) { netdev_err(priv->net_dev, "attribute=%08X, status=%08X\n", @@ -783,9 +779,7 @@ void hostif_ps_adhoc_set_confirm(struct ks_wlan_private *priv) static void hostif_infrastructure_set_confirm(struct ks_wlan_private *priv) { - u16 result_code; - result_code = get_word(priv); priv->infra_status = 1; /* infrastructure mode set */ hostif_sme_enqueue(priv, SME_MODE_SET_CONFIRM); } -- 2.11.0