Skip to content

Commit 144ba85

Browse files
kmaincentkuba-moo
authored andcommitted
net: pse-pd: Use EOPNOTSUPP error code instead of ENOTSUPP
ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP as reported by checkpatch script. Fixes: 18ff0bc ("ethtool: add interface to interact with Ethernet Power Equipment") Reviewed-by: Andrew Lunn <[email protected]> Acked-by: Oleksij Rempel <[email protected]> Signed-off-by: Kory Maincent <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 36534d3 commit 144ba85

File tree

1 file changed

+2
-2
lines changed
  • include/linux/pse-pd

1 file changed

+2
-2
lines changed

include/linux/pse-pd/pse.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,14 @@ static inline int pse_ethtool_get_status(struct pse_control *psec,
167167
struct netlink_ext_ack *extack,
168168
struct pse_control_status *status)
169169
{
170-
return -ENOTSUPP;
170+
return -EOPNOTSUPP;
171171
}
172172

173173
static inline int pse_ethtool_set_config(struct pse_control *psec,
174174
struct netlink_ext_ack *extack,
175175
const struct pse_control_config *config)
176176
{
177-
return -ENOTSUPP;
177+
return -EOPNOTSUPP;
178178
}
179179

180180
static inline bool pse_has_podl(struct pse_control *psec)

0 commit comments

Comments
 (0)