net: stmmac: replace ENOSYS by EINVAL
As said by checkpatch ENOSYS means 'invalid syscall nr' and nothing else. This patch replace ENOSYS by the more appropriate value EINVAL. Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com> Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8a70aeca80
commit
b2a8315a5c
@ -411,7 +411,7 @@ void stmmac_remove_config_dt(struct platform_device *pdev,
|
|||||||
struct plat_stmmacenet_data *
|
struct plat_stmmacenet_data *
|
||||||
stmmac_probe_config_dt(struct platform_device *pdev, const char **mac)
|
stmmac_probe_config_dt(struct platform_device *pdev, const char **mac)
|
||||||
{
|
{
|
||||||
return ERR_PTR(-ENOSYS);
|
return ERR_PTR(-EINVAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
void stmmac_remove_config_dt(struct platform_device *pdev,
|
void stmmac_remove_config_dt(struct platform_device *pdev,
|
||||||
|
Loading…
Reference in New Issue
Block a user