ieee802154 socket: No need to check for ARPHRD_IEEE802154 in raw_bind().
authorLennert Buytenhek <buytenh@wantstofly.org>
Mon, 25 May 2015 12:38:45 +0000 (15:38 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 26 May 2015 18:26:10 +0000 (20:26 +0200)
commit66a3297f6d3f9dc35e27c3cec6b4437ac13f07ff
treea16a51e79ed82bba0933feb546289996890774c9
parent01c8d2bbd407a178f5bfe0312c32aec345066697
ieee802154 socket: No need to check for ARPHRD_IEEE802154 in raw_bind().

ieee802154_get_dev() only returns devices that have dev->type ==
ARPHRD_IEEE802154, therefore, there is no need to check this again
in raw_bind().

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Acked-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/ieee802154/socket.c