mlxsw: spectrum_router: Simplify a piece of code
authorPetr Machata <petrm@mellanox.com>
Mon, 31 Jul 2017 07:27:28 +0000 (09:27 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Jul 2017 21:44:33 +0000 (14:44 -0700)
Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c

index b6df3c3b52909860f9aaf270a8afa21e78a0cf39..600268cf4fa111c2b0a712275e1be441fe178f77 100644 (file)
@@ -3124,9 +3124,7 @@ mlxsw_sp_rif_should_config(struct mlxsw_sp_rif *rif, struct net_device *dev,
 
        switch (event) {
        case NETDEV_UP:
-               if (!rif)
-                       return true;
-               return false;
+               return rif == NULL;
        case NETDEV_DOWN:
                idev = __in_dev_get_rtnl(dev);
                if (idev && idev->ifa_list)