ieee802154: cleanup WARN_ON for fc fetch
authorAlexander Aring <aar@pengutronix.de>
Wed, 6 Jul 2016 21:32:30 +0000 (23:32 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 8 Jul 2016 11:23:12 +0000 (13:23 +0200)
commit048e7f7e66a8693fe1707997bffd19d08cde08f5
treee2a0aa89cba64dc71f3c7363a56ba2dae6137624
parent38961294510ab20d24809c125c0a3738a02d3a28
ieee802154: cleanup WARN_ON for fc fetch

This patch cleanups the WARN_ON which occurs when the sk buffer has
insufficient buffer space by moving the WARN_ON into if condition.

Signed-off-by: Alexander Aring <aar@pengutronix.de>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/mac802154.h