ieee802154: 6lowpan: fix drop return value
authorAlexander Aring <alex.aring@gmail.com>
Wed, 2 Sep 2015 18:05:42 +0000 (20:05 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 17 Sep 2015 11:20:04 +0000 (13:20 +0200)
commit776857a87ccf1ae3095d9e16fbc8a0f9d1daac7e
tree1d55904b7e4994c45db03fe5c7b788b93726d5de
parent187625e18498ff0f3738a059778a8578171f06c8
ieee802154: 6lowpan: fix drop return value

This patch changes the return value of lowpan packet receive handler to
the correct NET_RX_DROP instead RX_DROP.

This issue was detected by sparse and reported from Marcel:
net/ieee802154/6lowpan/rx.c:329:32:    expected int
net/ieee802154/6lowpan/rx.c:329:32:    got restricted lowpan_rx_result ...

Reported-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/ieee802154/6lowpan/rx.c