Commit 38f13bf8 authored by Choong Yong Liang's avatar Choong Yong Liang Committed by Paolo Abeni
Browse files

stmmac: intel: Fix warning message for return value in intel_tsn_lane_is_available()



Fix the warning "warn: missing error code? 'ret'" in the
intel_tsn_lane_is_available() function.

The function now returns 0 to indicate that a TSN lane was found and
returns -EINVAL when it is not found.

Fixes: a42f6b3f ("net: stmmac: configure SerDes according to the interface mode")
Signed-off-by: default avatarChoong Yong Liang <yong.liang.choong@linux.intel.com>
Reviewed-by: default avatarKory Maincent <kory.maincent@bootlin.com>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250310050835.808870-1-yong.liang.choong@linux.intel.com


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent f2972ea1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment