diff options
author | Stanislav Yakovlev <stas.yakovlev@gmail.com> | 2012-11-15 03:07:47 +0000 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-11-16 14:29:06 -0500 |
commit | 9c033bed936629155129a2b3e7493838fe76b8b5 (patch) | |
tree | cf57c0dce0e2ed821fdf5909b6ff6e44acb32403 /drivers/net/wireless/ipw2x00/libipw_geo.c | |
parent | b87e2c482510d56563873827783046a8eece5829 (diff) | |
download | lwn-9c033bed936629155129a2b3e7493838fe76b8b5.tar.gz lwn-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_geo.c')
-rw-r--r-- | drivers/net/wireless/ipw2x00/libipw_geo.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/ipw2x00/libipw_geo.c b/drivers/net/wireless/ipw2x00/libipw_geo.c index c9fe3c99cb00..218f2a32de21 100644 --- a/drivers/net/wireless/ipw2x00/libipw_geo.c +++ b/drivers/net/wireless/ipw2x00/libipw_geo.c @@ -132,7 +132,7 @@ u8 libipw_freq_to_channel(struct libipw_device * ieee, u32 freq) return 0; } -int libipw_set_geo(struct libipw_device *ieee, +void libipw_set_geo(struct libipw_device *ieee, const struct libipw_geo *geo) { memcpy(ieee->geo.name, geo->name, 3); @@ -143,7 +143,6 @@ int libipw_set_geo(struct libipw_device *ieee, sizeof(struct libipw_channel)); memcpy(ieee->geo.a, geo->a, ieee->geo.a_channels * sizeof(struct libipw_channel)); - return 0; } const struct libipw_geo *libipw_get_geo(struct libipw_device *ieee) |