diff options
| author | Jijie Shao <shaojijie@huawei.com> | 2025-10-23 21:13:37 +0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-10-27 17:52:53 -0700 |
| commit | 03ca7c8c42be913529eb9f188278114430c6abbd (patch) | |
| tree | e20739e4a3d3ef772f076baf766587659a4aa2d1 /tools/docs/parse-headers.py | |
| parent | e3a0ca09acbe697245f944ee92b956db58a0ed09 (diff) | |
net: hns3: return error code when function fails
Currently, in hclge_mii_ioctl(), the operation to
read the PHY register (SIOCGMIIREG) always returns 0.
This patch changes the return type of hclge_read_phy_reg(),
returning an error code when the function fails.
Fixes: 024712f51e57 ("net: hns3: add ioctl support for imp-controlled PHYs")
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Link: https://patch.msgid.link/20251023131338.2642520-2-shaojijie@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/docs/parse-headers.py')
0 files changed, 0 insertions, 0 deletions
