ieee802154/mrf24j40: make sure we do not override return values
authorStefan Schmidt <stefan@osg.samsung.com>
Tue, 9 Jun 2015 08:52:26 +0000 (10:52 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 9 Jun 2015 08:55:36 +0000 (10:55 +0200)
commite5719b661a978f7d23042c140979351951f970bb
treefdf782ca21ff1effef13faf0458741d0ce8ea8bf
parent9a4d3d4ba17c93def2b4dc3126eba30716d15469
ieee802154/mrf24j40: make sure we do not override return values

If we run into an error during rx we set the the error code in ret, but override
it afterwards. Using a different variable for the extra case avoids this
situation.

CID: 12269821226983
Signed-off-by: Stefan Schmidt <stefan@osg.samsung.com>
Cc: Alan Ott <alan@signal11.us>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/net/ieee802154/mrf24j40.c