Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eth: phytmac: phytmac_ioctl: Return -EOPNOTSUPP by default
Fix follow error with clang-19: drivers/net/ethernet/phytium/phytmac_main.c:1818:2: error: variable 'ret' is used uninitialized whenever switch default is taken [-Werror,-Wsometimes-uninitialized] 1818 | default: | ^~~~~~~ drivers/net/ethernet/phytium/phytmac_main.c:1822:9: note: uninitialized use occurs here 1822 | return ret; | ^~~ drivers/net/ethernet/phytium/phytmac_main.c:1799:9: note: initialize the variable 'ret' to silence this warning 1799 | int ret; | ^ | = 0 1 error generated. Signed-off-by: WangYuli <[email protected]>
- Loading branch information