diff options
author | Leon Romanovsky <leonro@nvidia.com> | 2021-08-09 15:03:19 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-08-09 13:31:16 +0100 |
commit | 2a2b6e3640c43a808dcb5226963e2cc0669294b1 (patch) | |
tree | 59f594907cea1de4224f939ea54438156e33f4c0 /net/core/devlink.c | |
parent | e08d6d42b6f9aaf627df2e0a4c8b1e27ce70fe87 (diff) |
devlink: Fix port_type_set function pointer check
Fix a typo when checking existence of port_type_set function pointer.
Fixes: 82564f6c706a ("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>
Diffstat (limited to 'net/core/devlink.c')
-rw-r--r-- | net/core/devlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/devlink.c b/net/core/devlink.c index d3b16dd9f64e..b02d54ab59ac 100644 --- a/net/core/devlink.c +++ b/net/core/devlink.c @@ -1274,7 +1274,7 @@ static int devlink_port_type_set(struct devlink_port *devlink_port, { int err; - if (devlink_port->devlink->ops->port_type_set) + if (!devlink_port->devlink->ops->port_type_set) return -EOPNOTSUPP; if (port_type == devlink_port->type) |