Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1b1f273 authored by Petr Machata's avatar Petr Machata Committed by David S. Miller
Browse files

mlxsw: spectrum_router: Simplify a piece of code

parent 83930cd7
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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)