diff options
author | Jean Sacren <sakiwit@gmail.com> | 2014-03-01 23:54:36 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-03 21:40:35 +0100 |
commit | 677676cd584033a47974c3634c6c9235e14db1a4 (patch) | |
tree | 02b9816d3129f148b5d9552c38876563436d3a62 /net/sched | |
parent | connector: remove duplicated code in cn_call_callback() (diff) | |
download | linux-677676cd584033a47974c3634c6c9235e14db1a4.tar.xz linux-677676cd584033a47974c3634c6c9235e14db1a4.zip |
ieee802154: fix at86rf212_set_txpower() exit path
The commit 9b2777d6089bc ("ieee802154: add TX power control to
wpan_phy") introduced the new function at86rf212_set_txpower() with
the questionable check of the return of __at86rf230_write() in the
exit path:
1) Both at86rf212_set_txpower() and __at86rf230_write() have the
same return type.
2) Whatever __at86rf230_write() returns becomes the return value of
at86rf212_set_txpower().
Thus, fix the exit path by getting rid of that check entirely.
Signed-off-by: Jean Sacren <sakiwit@gmail.com>
Cc: Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
0 files changed, 0 insertions, 0 deletions