Commit eac5f8a9 authored by Parav Pandit's avatar Parav Pandit Committed by David S. Miller
Browse files

devlink: Constify devlink instance pointer



Constify devlink instance pointer while checking if reload operation is
supported or not.

This helps to review the scope of checks done in reload.

Signed-off-by: default avatarParav Pandit <parav@mellanox.com>
Reviewed-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 336ce1c9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2921,7 +2921,7 @@ static void devlink_reload_netns_change(struct devlink *devlink,
				     DEVLINK_CMD_PARAM_NEW);
}

static bool devlink_reload_supported(struct devlink *devlink)
static bool devlink_reload_supported(const struct devlink *devlink)
{
	return devlink->ops->reload_down && devlink->ops->reload_up;
}