staging: ks7010: removed unused variables
PATCH v3 1/1 staging: ks7010: removed unused variables
From: Bo Yu <[email protected]>
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.
Cc Greg Kroah-Hartman <[email protected]>
Cc Sergio Paracuellos <[email protected]>
Cc Quytelda Kahja <[email protected]>
Signed-off-by Bo Yu <[email protected]>
---
Changelog:
V3: fix spell issue in subject line
V2: fix patch format
--- drivers/staging/ks7010/ks_hostif.c | 6 ------ 1 file changed, 6 deletions(-)
drivers/staging/ks7010/ks_hostif.c +0 -6
@@ -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 ); }
Signature · 1 line
2.11.0