mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-17 16:14:25 +08:00
net: pse-pd: Use EOPNOTSUPP error code instead of ENOTSUPP
[ Upstream commit144ba8580b
] ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP as reported by checkpatch script. Fixes:18ff0bcda6
("ethtool: add interface to interact with Ethernet Power Equipment") Reviewed-by: Andrew Lunn <andrew@lunn.ch> Acked-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Kory Maincent <kory.maincent@bootlin.com> Link: https://lore.kernel.org/r/20240610083426.740660-1-kory.maincent@bootlin.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
2ad10c2aad
commit
b0c95cefd9
@ -114,14 +114,14 @@ static inline int pse_ethtool_get_status(struct pse_control *psec,
|
|||||||
struct netlink_ext_ack *extack,
|
struct netlink_ext_ack *extack,
|
||||||
struct pse_control_status *status)
|
struct pse_control_status *status)
|
||||||
{
|
{
|
||||||
return -ENOTSUPP;
|
return -EOPNOTSUPP;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int pse_ethtool_set_config(struct pse_control *psec,
|
static inline int pse_ethtool_set_config(struct pse_control *psec,
|
||||||
struct netlink_ext_ack *extack,
|
struct netlink_ext_ack *extack,
|
||||||
const struct pse_control_config *config)
|
const struct pse_control_config *config)
|
||||||
{
|
{
|
||||||
return -ENOTSUPP;
|
return -EOPNOTSUPP;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user