]> git.baikalelectronics.ru Git - kernel.git/commit
mac802154/iface: remove superfluous WARN_ON call in slave_open()
authorStefan Schmidt <stefan@osg.samsung.com>
Mon, 8 Jun 2015 20:06:40 +0000 (22:06 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 9 Jun 2015 07:44:23 +0000 (09:44 +0200)
commit3d80794f9b44805b3fd0503104795a71b38c7381
treee95ba5f010feb0a861a2f99b7e3c686849fbdcde
parentdab6690914ef436e5ba3c30be5b6792578dbbcc4
mac802154/iface: remove superfluous WARN_ON call in slave_open()

This call was used before we aligned our code with the wireless code base. We
are wanted to handle this in the err: code path. Which would actually not work
because the WARN_ON() macro would reset the res value to 0 and thus we would
never hit err:. Removing it makes the code do what we actually intend.

Signed-off-by: Stefan Schmidt <stefan@osg.samsung.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/mac802154/iface.c