switchdev: Remove redundant variable
authorIdo Schimmel <idosch@mellanox.com>
Wed, 26 Oct 2016 09:03:03 +0000 (12:03 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Oct 2016 18:58:33 +0000 (14:58 -0400)
commitc778453b138889587eee23e246e231bb12d1e80d
treefb435f8d68e328d2e0a46a468aebc5f8c89260ae
parentb15ca182ed136087f6a2cb9ffe880c923f36a56e
switchdev: Remove redundant variable

Instead of storing return value in 'err' and returning, just return
directly.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/switchdev/switchdev.c