brcmsmac: delete useless variable
Delete a variable that is at most only assigned to a constant, but never used otherwise. A simplified version of the semantic patch that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ type T; identifier i; constant c; @@ -T i; <... when != i -i = c; ...> // </smpl> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
071aa9a8b2
commit
6dc75f1c9f
|
@ -7108,7 +7108,6 @@ prep_mac80211_status(struct brcms_c_info *wlc, struct d11rxhdr *rxh,
|
||||||
struct sk_buff *p,
|
struct sk_buff *p,
|
||||||
struct ieee80211_rx_status *rx_status)
|
struct ieee80211_rx_status *rx_status)
|
||||||
{
|
{
|
||||||
int preamble;
|
|
||||||
int channel;
|
int channel;
|
||||||
u32 rspec;
|
u32 rspec;
|
||||||
unsigned char *plcp;
|
unsigned char *plcp;
|
||||||
|
@ -7191,7 +7190,6 @@ prep_mac80211_status(struct brcms_c_info *wlc, struct d11rxhdr *rxh,
|
||||||
rx_status->rate_idx -= BRCMS_LEGACY_5G_RATE_OFFSET;
|
rx_status->rate_idx -= BRCMS_LEGACY_5G_RATE_OFFSET;
|
||||||
|
|
||||||
/* Determine short preamble and rate_idx */
|
/* Determine short preamble and rate_idx */
|
||||||
preamble = 0;
|
|
||||||
if (is_cck_rate(rspec)) {
|
if (is_cck_rate(rspec)) {
|
||||||
if (rxh->PhyRxStatus_0 & PRXS0_SHORTH)
|
if (rxh->PhyRxStatus_0 & PRXS0_SHORTH)
|
||||||
rx_status->flag |= RX_FLAG_SHORTPRE;
|
rx_status->flag |= RX_FLAG_SHORTPRE;
|
||||||
|
|
Loading…
Reference in New Issue