diff options
author | Oleksij Rempel <[email protected]> | 2021-04-29 13:08:33 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2021-04-29 15:54:35 -0700 |
commit | d4eecfb28b963493a8701f271789ff04e92ae205 (patch) | |
tree | 404945eafbfc36baae0c7a4c616dca0d35f43d6a /tools/perf/scripts/python/intel-pt-events.py | |
parent | ba46b576a7954fa54ff4c1ef976624794b6668f6 (diff) |
net: dsa: ksz: ksz8863_smi_probe: set proper return value for ksz_switch_alloc()
ksz_switch_alloc() will return NULL only if allocation is failed. So,
the proper return value is -ENOMEM.
Fixes: 60a364760002 ("net: dsa: microchip: Add Microchip KSZ8863 SMI based driver support")
Signed-off-by: Oleksij Rempel <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions