OSDN Git Service

ieee802154: cc2520: check for return values in cc2520_filter()
authorStefan Schmidt <stefan@osg.samsung.com>
Tue, 9 Jun 2015 09:49:27 +0000 (11:49 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 9 Jun 2015 12:05:22 +0000 (14:05 +0200)
commitc9d442038ef729549e1fd14ff1d61d0d3a7f0560
treef4b98d628073541752d7dff311928151c6593455
parentfe8de008ecc7c8a6bda72a7c3ac1916c947074b2
ieee802154: cc2520: check for return values in cc2520_filter()

neither ram nor register write return values have been checked here.
Checking both now. Assign ret with 0 as all other assignments are inside
if blocks and might not happen before we return ret.

CID: 1230469
Signed-off-by: Stefan Schmidt <stefan@osg.samsung.com>
Acked-by: Varka Bhadram <varkabhadram@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/net/ieee802154/cc2520.c