Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6580772ybe; Wed, 18 Sep 2019 05:58:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxKDm15MN9rC7822FFuz0ak8eiDTcg6jwlgsVgBPmM37kt3dDCXq76Bs0UUHtGtvsIxmABB X-Received: by 2002:a50:b885:: with SMTP id l5mr9840775ede.190.1568811493690; Wed, 18 Sep 2019 05:58:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568811493; cv=none; d=google.com; s=arc-20160816; b=h4AtcpfEdsQkpJpUhvUHrHtKtCkSba4J3iQB4BTTccS16ZqWprdulRdaNpbkjFqYeu Y9h3NuztHdWdG+DCpzjrDvg+wrbWOZ9lCkfhxno8oTFFUcz9L/tJVp2A9j78JirNnCHN jQuINDG251GO2HvdnJx6g2J7lQ/YivwKntTpzWR/HUqvLVu4o2lZ1ItkrrtvpWNC8ZEA 91lSZFt6UB8CG7/n1hET43M2GZMJs5WHvhq3njBTAvKu63mM3c00P6F7n1j/CfRJeldk MXbrqOf0DZW0GW9D7UbPlOM1nSw1+gkjZsR9f14i+yIYDHhjr3sMSWIRybXrFdU5PJMr MFsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=TP5u6Ukr8naGDCwUgGDGagSd1luSKaVAHPd6/hA2Lxc=; b=GMsjK6jowce6SYI5ffGcn3nt2y2/KXpIi8Zq8Cc7wxkLccgZDStmqyL/KIcIlUoknP lxiEBWFPTh2tezjf/OT1FRQDQu3+X1svZ12+7LBJrvSY+g5e56edsQ111yFLdihpgW9H 12B7OKsWZBkDe1vVW3RLN0NBS3lCSg3JhTVIWJaK5lfbqwC3aki4OsE7zo6iTGaRxB7f 3grzyeJxO1geAmHm56DPKOFAbBXnJUUo/EdHmGYHsml3jOgpwEYmM1KNaY7kvpu6Mnf7 TfYmmCz3w/KFxDkftwICoQinat9bZkYZRz8zz1TI86oZKVArLoC8+z40yadHX9V0EQ0Q wVnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BQyCXC4u; 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 r17si3225603edp.400.2019.09.18.05.57.50; Wed, 18 Sep 2019 05:58:13 -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=BQyCXC4u; 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 S1727243AbfIRJ0R (ORCPT + 99 others); Wed, 18 Sep 2019 05:26:17 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:45853 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726077AbfIRJ0Q (ORCPT ); Wed, 18 Sep 2019 05:26:16 -0400 Received: by mail-pl1-f193.google.com with SMTP id u12so143758pls.12 for ; Wed, 18 Sep 2019 02:26:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=TP5u6Ukr8naGDCwUgGDGagSd1luSKaVAHPd6/hA2Lxc=; b=BQyCXC4uNCAIjoc6ev5sISLgargq7BoavxCTsf+ZXZA/3MRVJm6DE8cNuUu1er+7LE g/uRuoy5CYC0InQssHzLPQdsPpqdDOFBC2ETNyaiJgR5JIbtEzXrer/bfNK3fgtO74WY TWCHxcgI63IHQFZKGU5l3NNMYrBlSSndSIyO0hbjBMDFtrxbVBfNTD7F2Dfyu+CH6zN/ uDEZC0HHw+uSO0meiDOucKi5DYimCHKvbUWFE/Ju886VeMe4GEXm1duuQ35P1cAvvs8F hbyvqDGWtmXdvz9KdsUQmA6EpSxpspLfxkObA8Ev5bFTbMN7Whp/NmFRDWXfvZDfArRq pXSg== 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; bh=TP5u6Ukr8naGDCwUgGDGagSd1luSKaVAHPd6/hA2Lxc=; b=XmoSaGH7iDABBLQzYeO2vAl9bwEp16qHLnmwlPBIi9BzGx0UT6Q/RTNf4O+2aJR31Y XwYoxayOgZDv3+r+SYb+obb1zSqLcS/BcE/io2PMOsDtlBGnu7GMg+hR0j0nLIFYXtjO Qcz3j9KMBn1kqJvEqHro542QMb8XQ3CPuBFRxnrRZRD9zuHhsiVwWZqvthFjPGeTxCg0 Jlzk0awuiAfaJtswYkINugzVhZP/3M5iNo0uUheJZzeo0FSGvDVFk+hY0FaZWZAv89RX M8FF0kNWLMq6EO3sUcKIK7yD4CwkzHz5U4wqIR6HdHkJfSZLUXE/HLP1kh+XcV0sBIhe AF/g== X-Gm-Message-State: APjAAAXJe3n6O8g6QGfHfS8MBEdZOCNsx2lxveYVMNDLpCyWze/ioGau a0TE6ncKAyp4LqbSy9ZcK00= X-Received: by 2002:a17:902:9698:: with SMTP id n24mr3268424plp.238.1568798775771; Wed, 18 Sep 2019 02:26:15 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1951:77d6:5858:909b:a968:2d14]) by smtp.gmail.com with ESMTPSA id m12sm9270654pff.66.2019.09.18.02.26.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Sep 2019 02:26:14 -0700 (PDT) From: Aliasgar Surti X-Google-Original-From: Aliasgar Surti To: gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: Aliasgar Surti Subject: [PATCH v2] drivers:staging:rtl8723bs: Removed unneeded variables Date: Wed, 18 Sep 2019 14:55:49 +0530 Message-Id: <1568798749-9855-1-git-send-email-aliasgar.surti500@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Aliasgar Surti coccicheck reported warning for unneeded variable used. This patch removes the unneeded variables. Signed-off-by: Aliasgar Surti --- v2: removed unneeded functions and replaced them with NULL in function array. --- drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 54 +++----------------------- 1 file changed, 5 insertions(+), 49 deletions(-) diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c index d1b199e..55c6e45 100644 --- a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c @@ -2425,13 +2425,6 @@ static int rtw_drvext_hdl(struct net_device *dev, struct iw_request_info *info, return 0; } -static int rtw_mp_ioctl_hdl(struct net_device *dev, struct iw_request_info *info, - union iwreq_data *wrqu, char *extra) -{ - int ret = 0; - return ret; -} - static int rtw_get_ap_info(struct net_device *dev, struct iw_request_info *info, union iwreq_data *wrqu, char *extra) @@ -4458,43 +4451,6 @@ static int rtw_pm_set(struct net_device *dev, return ret; } -static int rtw_mp_efuse_get(struct net_device *dev, - struct iw_request_info *info, - union iwreq_data *wdata, char *extra) -{ - int err = 0; - return err; -} - -static int rtw_mp_efuse_set(struct net_device *dev, - struct iw_request_info *info, - union iwreq_data *wdata, char *extra) -{ - int err = 0; - return err; -} - -static int rtw_tdls(struct net_device *dev, - struct iw_request_info *info, - union iwreq_data *wrqu, char *extra) -{ - int ret = 0; - return ret; -} - - -static int rtw_tdls_get(struct net_device *dev, - struct iw_request_info *info, - union iwreq_data *wrqu, char *extra) -{ - int ret = 0; - return ret; -} - - - - - static int rtw_test( struct net_device *dev, struct iw_request_info *info, @@ -4744,7 +4700,7 @@ static iw_handler rtw_private_handler[] = { rtw_wx_write32, /* 0x00 */ rtw_wx_read32, /* 0x01 */ rtw_drvext_hdl, /* 0x02 */ - rtw_mp_ioctl_hdl, /* 0x03 */ + NULL, /* 0x03 */ /* for MM DTV platform */ rtw_get_ap_info, /* 0x04 */ @@ -4771,15 +4727,15 @@ static iw_handler rtw_private_handler[] = { NULL, /* 0x12 */ rtw_p2p_get2, /* 0x13 */ - rtw_tdls, /* 0x14 */ - rtw_tdls_get, /* 0x15 */ + NULL, /* 0x14 */ + NULL, /* 0x15 */ rtw_pm_set, /* 0x16 */ rtw_wx_priv_null, /* 0x17 */ rtw_rereg_nd_name, /* 0x18 */ rtw_wx_priv_null, /* 0x19 */ - rtw_mp_efuse_set, /* 0x1A */ - rtw_mp_efuse_get, /* 0x1B */ + NULL, /* 0x1A */ + NULL, /* 0x1B */ NULL, /* 0x1C is reserved for hostapd */ rtw_test, /* 0x1D */ }; -- 2.7.4