diff options
author | Randy Dunlap <[email protected]> | 2022-02-23 19:35:36 -0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2022-02-25 08:53:17 -0800 |
commit | e01b042e580f1fbf4fd8da467442451da00c7a90 (patch) | |
tree | a147fe57eda21ba78834f5059a3337ce932d919f /net/lapb/lapb_iface.c | |
parent | 50e06ddceeea263f57fe92baa677c638ecd65bb6 (diff) |
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: 47dd7a540b8a ("net: add support for STMicroelectronics Ethernet controllers.")
Fixes: f3240e2811f0 ("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]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions