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 <rdunlap@infradead.org>
Reported-by: Igor Zhbanov <i.zhbanov@omprussia.ru>
Link: lore.kernel.org/r/64644a2f-4a20-bab3-1e15-3b2cdd0defe3@omprussia.ru
Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Cc: Alexandre Torgue <alexandre.torgue@foss.st.com>
Cc: Jose Abreu <joabreu@synopsys.com>
Link: https://lore.kernel.org/r/20220224033536.25056-1-rdunlap@infradead.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>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