mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 09:02:06 +00:00
devlink: Fix port_type_set function pointer check
Fix a typo when checking existence of port_type_set function pointer.
Fixes: 82564f6c70
("devlink: Simplify devlink port API calls")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e08d6d42b6
commit
2a2b6e3640
1 changed files with 1 additions and 1 deletions
|
@ -1274,7 +1274,7 @@ static int devlink_port_type_set(struct devlink_port *devlink_port,
|
||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
if (devlink_port->devlink->ops->port_type_set)
|
if (!devlink_port->devlink->ops->port_type_set)
|
||||||
return -EOPNOTSUPP;
|
return -EOPNOTSUPP;
|
||||||
|
|
||||||
if (port_type == devlink_port->type)
|
if (port_type == devlink_port->type)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue