summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/libertas/main.c
diff options
context:
space:
mode:
authorHolger Schurig <hs4233@mail.mn-solutions.de>2008-05-14 14:27:18 (GMT)
committerJohn W. Linville <linville@tuxdriver.com>2008-05-14 20:29:50 (GMT)
commitef85ad541f9a6ccd3f89ec73f92b2d6f45a9d3e8 (patch)
tree2bcdfb7d200f671a254700ecbff69cb7eacf621a /drivers/net/wireless/libertas/main.c
parent6dcdc19e4ba4e6a9ccd733fdb745ad062cf3ea0a (diff)
downloadlinux-fsl-qoriq-ef85ad541f9a6ccd3f89ec73f92b2d6f45a9d3e8.tar.xz
libertas: remove lbs_get_data_rate()
lbs_get_data_rate() gets called, but no-one uses it's result. Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/main.c')
-rw-r--r--drivers/net/wireless/libertas/main.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c
index 0be8957..e333f14 100644
--- a/drivers/net/wireless/libertas/main.c
+++ b/drivers/net/wireless/libertas/main.c
@@ -927,20 +927,10 @@ static int lbs_setup_firmware(struct lbs_private *priv)
*/
memset(priv->current_addr, 0xff, ETH_ALEN);
ret = lbs_update_hw_spec(priv);
- if (ret) {
- ret = -1;
+ if (ret)
goto done;
- }
lbs_set_mac_control(priv);
-
- ret = lbs_get_data_rate(priv);
- if (ret < 0) {
- ret = -1;
- goto done;
- }
-
- ret = 0;
done:
lbs_deb_leave_args(LBS_DEB_FW, "ret %d", ret);
return ret;