提交 91917c77 编写于 作者: H Hante Meuleman 提交者: John W. Linville

brcmfmac: remove unused iswl variable.

Variable iswl always gets initialised to the same and support for
this var is not needed.
Reviewed-by: NArend Van Spriel <arend@broadcom.com>
Signed-off-by: NHante Meuleman <meuleman@broadcom.com>
Signed-off-by: NFranky Lin <frankyl@broadcom.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 81f5dcb8
...@@ -629,7 +629,6 @@ struct brcmf_pub { ...@@ -629,7 +629,6 @@ struct brcmf_pub {
u8 wme_dp; /* wme discard priority */ u8 wme_dp; /* wme discard priority */
/* Dongle media info */ /* Dongle media info */
bool iswl; /* Dongle-resident driver is wl */
unsigned long drv_version; /* Version of dongle-resident driver */ unsigned long drv_version; /* Version of dongle-resident driver */
u8 mac[ETH_ALEN]; /* MAC address obtained from dongle */ u8 mac[ETH_ALEN]; /* MAC address obtained from dongle */
......
...@@ -481,9 +481,6 @@ int brcmf_proto_init(struct brcmf_pub *drvr) ...@@ -481,9 +481,6 @@ int brcmf_proto_init(struct brcmf_pub *drvr)
ret = brcmf_c_preinit_dcmds(drvr); ret = brcmf_c_preinit_dcmds(drvr);
/* Always assumes wl for now */
drvr->iswl = true;
return ret; return ret;
} }
......
...@@ -619,12 +619,9 @@ static int brcmf_ethtool(struct brcmf_pub *drvr, void __user *uaddr) ...@@ -619,12 +619,9 @@ static int brcmf_ethtool(struct brcmf_pub *drvr, void __user *uaddr)
brcmf_dbg(ERROR, "dongle is not up\n"); brcmf_dbg(ERROR, "dongle is not up\n");
return -ENODEV; return -ENODEV;
} }
/* finally, report dongle driver type */ /* finally, report dongle driver type */
else if (drvr->iswl)
sprintf(info.driver, "wl");
else else
sprintf(info.driver, "xx"); sprintf(info.driver, "wl");
sprintf(info.version, "%lu", drvr->drv_version); sprintf(info.version, "%lu", drvr->drv_version);
if (copy_to_user(uaddr, &info, sizeof(info))) if (copy_to_user(uaddr, &info, sizeof(info)))
...@@ -734,11 +731,6 @@ s32 brcmf_exec_dcmd(struct net_device *ndev, u32 cmd, void *arg, u32 len) ...@@ -734,11 +731,6 @@ s32 brcmf_exec_dcmd(struct net_device *ndev, u32 cmd, void *arg, u32 len)
goto done; goto done;
} }
if (!drvr->iswl) {
err = -EIO;
goto done;
}
/* /*
* Intercept BRCMF_C_SET_KEY CMD - serialize M4 send and * Intercept BRCMF_C_SET_KEY CMD - serialize M4 send and
* set key CMD to prevent M4 encryption. * set key CMD to prevent M4 encryption.
......
...@@ -28,7 +28,7 @@ extern int brcmf_proto_attach(struct brcmf_pub *drvr); ...@@ -28,7 +28,7 @@ extern int brcmf_proto_attach(struct brcmf_pub *drvr);
extern void brcmf_proto_detach(struct brcmf_pub *drvr); extern void brcmf_proto_detach(struct brcmf_pub *drvr);
/* Initialize protocol: sync w/dongle state. /* Initialize protocol: sync w/dongle state.
* Sets dongle media info (iswl, drv_version, mac address). * Sets dongle media info (drv_version, mac address).
*/ */
extern int brcmf_proto_init(struct brcmf_pub *drvr); extern int brcmf_proto_init(struct brcmf_pub *drvr);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册