Skip to content

Commit

Permalink
mac802154/iface: remove superfluous WARN_ON call in slave_open()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stefan Schmidt authored and Marcel Holtmann committed Jun 9, 2015
1 parent e66890a commit 9a4d3d4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/mac802154/iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ static int mac802154_slave_open(struct net_device *dev)

if (!local->open_count) {
res = drv_start(local);
WARN_ON(res);
if (res)
goto err;
}
Expand Down

0 comments on commit 9a4d3d4

Please sign in to comment.