From: Jean Sacren Date: Sat, 1 Mar 2014 22:54:36 +0000 (-0700) Subject: ieee802154: fix at86rf212_set_txpower() exit path X-Git-Tag: v3.15-rc1~113^2~231 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=677676cd584033a47974c3634c6c9235e14db1a4;p=pandora-kernel.git 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 Cc: Phoebe Buckheister Signed-off-by: David S. Miller --- Reading git-diff-tree failed