summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ipw2x00/libipw.h
diff options
context:
space:
mode:
authorStanislav Yakovlev <stas.yakovlev@gmail.com>2012-11-15 03:07:47 +0000
committerJohn W. Linville <linville@tuxdriver.com>2012-11-16 14:29:06 -0500
commit9c033bed936629155129a2b3e7493838fe76b8b5 (patch)
treecf57c0dce0e2ed821fdf5909b6ff6e44acb32403 /drivers/net/wireless/ipw2x00/libipw.h
parentb87e2c482510d56563873827783046a8eece5829 (diff)
downloadblackbird-op-linux-9c033bed936629155129a2b3e7493838fe76b8b5.tar.gz
blackbird-op-linux-9c033bed936629155129a2b3e7493838fe76b8b5.zip
net/wireless: ipw2x00: remove unreachable code
Remove unnecessary if statements because libipw_set_geo always returns success. Also change function's return value from int to void. Signed-off-by: Stanislav Yakovlev <stas.yakovlev@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ipw2x00/libipw.h')
-rw-r--r--drivers/net/wireless/ipw2x00/libipw.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ipw2x00/libipw.h b/drivers/net/wireless/ipw2x00/libipw.h
index 0b22fb421735..6eede52ad8c0 100644
--- a/drivers/net/wireless/ipw2x00/libipw.h
+++ b/drivers/net/wireless/ipw2x00/libipw.h
@@ -978,7 +978,7 @@ extern void libipw_network_reset(struct libipw_network *network);
/* libipw_geo.c */
extern const struct libipw_geo *libipw_get_geo(struct libipw_device
*ieee);
-extern int libipw_set_geo(struct libipw_device *ieee,
+extern void libipw_set_geo(struct libipw_device *ieee,
const struct libipw_geo *geo);
extern int libipw_is_valid_channel(struct libipw_device *ieee,
OpenPOWER on IntegriCloud