aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorSerge Semin <[email protected]>2024-02-22 20:58:22 +0300
committerDavid S. Miller <[email protected]>2024-02-26 13:09:08 +0000
commitf5151005d379d9ce42e327fd3b2d2aaef61cda81 (patch)
tree172e0cccd448948bd610e14a07bbbc3b87afa038 /scripts/generate_rust_analyzer.py
parente26802ebd29573cdca9bcc01c8731db9ffc3332b (diff)
net: pcs: xpcs: Return EINVAL in the internal methods
In particular the xpcs_soft_reset() and xpcs_do_config() functions currently return -1 if invalid auto-negotiation mode is specified. That value might be then passed to the generic kernel subsystems which require a standard kernel errno value. Even though the erroneous conditions are very specific (memory corruption or buggy driver implementation) using a hard-coded -1 literal doesn't seem correct anyway especially when it comes to passing it higher to the network subsystem or printing to the system log. Convert the hard-coded error values to -EINVAL then. Signed-off-by: Serge Semin <[email protected]> Tested-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions