diff options
author | Siddharth Vadapalli <[email protected]> | 2023-01-20 12:37:30 +0530 |
---|---|---|
committer | Paolo Abeni <[email protected]> | 2023-01-24 10:08:50 +0100 |
commit | 0a974b1fff7f8c685a0370a25d6e7150460f7b7d (patch) | |
tree | 7e2424085efc6754c4d995e36c53b977d519b311 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | d7bf56e0c591e189141430dc8bf4a1b4d0f117a2 (diff) |
net: ethernet: ti: am65-cpsw: Delete unreachable error handling code
The am65_cpts_create() function returns -EOPNOTSUPP only when the config
"CONFIG_TI_K3_AM65_CPTS" is disabled. Also, in the am65_cpsw_init_cpts()
function, am65_cpts_create() can only be invoked if the config
"CONFIG_TI_K3_AM65_CPTS" is enabled. Thus, the error handling code for the
case in which the return value of am65_cpts_create() is -EOPNOTSUPP, is
unreachable. Hence delete it.
Reported-by: Leon Romanovsky <[email protected]>
Signed-off-by: Siddharth Vadapalli <[email protected]>
Reviewed-by: Leon Romanovsky <[email protected]>
Reviewed-by: Tony Nguyen <[email protected]>
Reviewed-by: Roger Quadros <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions