staging: wlan-ng: Remove unused struct wlan_ie_supp_rates references
Pointer reference to struct wlan_ie_supp_rates is added as a member variable to 7 different structures. However, these references are never used. Remove such unused struct references. The cleanup also renders the struct useless; so remove it as well. Issue identified as part of coccicheck based code analysis. Suggested-by: Dan Carpenter <dan.carpenter@oracle.com> Suggested-by: Pavel Skripkin <paskripkin@gmail.com> Signed-off-by: Deepak R Varma <drv@mailo.com> Link: https://lore.kernel.org/r/370feb1f300896af66fa1c443d3ad19dc8934be3.1667308828.git.drv@mailo.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
72cdc5aec2
commit
2a899064b6
@ -225,13 +225,6 @@ struct wlan_ie {
|
|||||||
u8 len;
|
u8 len;
|
||||||
} __packed;
|
} __packed;
|
||||||
|
|
||||||
/*-- Supported Rates -----------------------------*/
|
|
||||||
struct wlan_ie_supp_rates {
|
|
||||||
u8 eid;
|
|
||||||
u8 len;
|
|
||||||
u8 rates[1]; /* had better be at LEAST one! */
|
|
||||||
} __packed;
|
|
||||||
|
|
||||||
/*-- FH Parameter Set ----------------------------*/
|
/*-- FH Parameter Set ----------------------------*/
|
||||||
struct wlan_ie_fh_parms {
|
struct wlan_ie_fh_parms {
|
||||||
u8 eid;
|
u8 eid;
|
||||||
@ -312,7 +305,6 @@ struct wlan_fr_beacon {
|
|||||||
u16 *bcn_int;
|
u16 *bcn_int;
|
||||||
u16 *cap_info;
|
u16 *cap_info;
|
||||||
/*-- info elements ----------*/
|
/*-- info elements ----------*/
|
||||||
struct wlan_ie_supp_rates *supp_rates;
|
|
||||||
struct wlan_ie_fh_parms *fh_parms;
|
struct wlan_ie_fh_parms *fh_parms;
|
||||||
struct wlan_ie_ds_parms *ds_parms;
|
struct wlan_ie_ds_parms *ds_parms;
|
||||||
struct wlan_ie_cf_parms *cf_parms;
|
struct wlan_ie_cf_parms *cf_parms;
|
||||||
@ -364,7 +356,6 @@ struct wlan_fr_assocreq {
|
|||||||
u16 *cap_info;
|
u16 *cap_info;
|
||||||
u16 *listen_int;
|
u16 *listen_int;
|
||||||
/*-- info elements ----------*/
|
/*-- info elements ----------*/
|
||||||
struct wlan_ie_supp_rates *supp_rates;
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -381,7 +372,6 @@ struct wlan_fr_assocresp {
|
|||||||
u16 *status;
|
u16 *status;
|
||||||
u16 *aid;
|
u16 *aid;
|
||||||
/*-- info elements ----------*/
|
/*-- info elements ----------*/
|
||||||
struct wlan_ie_supp_rates *supp_rates;
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -398,7 +388,6 @@ struct wlan_fr_reassocreq {
|
|||||||
u16 *listen_int;
|
u16 *listen_int;
|
||||||
u8 *curr_ap;
|
u8 *curr_ap;
|
||||||
/*-- info elements ----------*/
|
/*-- info elements ----------*/
|
||||||
struct wlan_ie_supp_rates *supp_rates;
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -415,7 +404,6 @@ struct wlan_fr_reassocresp {
|
|||||||
u16 *status;
|
u16 *status;
|
||||||
u16 *aid;
|
u16 *aid;
|
||||||
/*-- info elements ----------*/
|
/*-- info elements ----------*/
|
||||||
struct wlan_ie_supp_rates *supp_rates;
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -429,7 +417,6 @@ struct wlan_fr_probereq {
|
|||||||
void *priv;
|
void *priv;
|
||||||
/*-- fixed fields -----------*/
|
/*-- fixed fields -----------*/
|
||||||
/*-- info elements ----------*/
|
/*-- info elements ----------*/
|
||||||
struct wlan_ie_supp_rates *supp_rates;
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -446,7 +433,6 @@ struct wlan_fr_proberesp {
|
|||||||
u16 *bcn_int;
|
u16 *bcn_int;
|
||||||
u16 *cap_info;
|
u16 *cap_info;
|
||||||
/*-- info elements ----------*/
|
/*-- info elements ----------*/
|
||||||
struct wlan_ie_supp_rates *supp_rates;
|
|
||||||
struct wlan_ie_fh_parms *fh_parms;
|
struct wlan_ie_fh_parms *fh_parms;
|
||||||
struct wlan_ie_ds_parms *ds_parms;
|
struct wlan_ie_ds_parms *ds_parms;
|
||||||
struct wlan_ie_cf_parms *cf_parms;
|
struct wlan_ie_cf_parms *cf_parms;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user