Commit e01b042
net: stmmac: fix return value of __setup handler
__setup() handlers should return 1 on success, i.e., the parameter
has been handled. A return of 0 causes the "option=value" string to be
added to init's environment strings, polluting it.
Fixes: 47dd7a5 ("net: add support for STMicroelectronics Ethernet controllers.")
Fixes: f3240e2 ("stmmac: remove warning when compile as built-in (V2)")
Signed-off-by: Randy Dunlap <[email protected]>
Reported-by: Igor Zhbanov <[email protected]>
Link: lore.kernel.org/r/[email protected]
Cc: Giuseppe Cavallaro <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Cc: Jose Abreu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent 50e06dd commit e01b042
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7491 | 7491 | | |
7492 | 7492 | | |
7493 | 7493 | | |
7494 | | - | |
| 7494 | + | |
7495 | 7495 | | |
7496 | 7496 | | |
7497 | 7497 | | |
| |||
7522 | 7522 | | |
7523 | 7523 | | |
7524 | 7524 | | |
7525 | | - | |
| 7525 | + | |
7526 | 7526 | | |
7527 | 7527 | | |
7528 | 7528 | | |
7529 | | - | |
| 7529 | + | |
7530 | 7530 | | |
7531 | 7531 | | |
7532 | 7532 | | |
| |||
0 commit comments