]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: aha152x: Fix aha152x_setup() __setup handler return value
authorRandy Dunlap <rdunlap@infradead.org>
Wed, 23 Feb 2022 00:06:23 +0000 (16:06 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 28 Feb 2022 02:39:32 +0000 (21:39 -0500)
commitd0435c278c1c21c5dac1cec5ca85c6d64bf9eb7c
treefe538c2e4a03c3dc335f23331252a40f811c3490
parent594422c0ed02b5341366667cd0a6c16ac4e6c84a
scsi: aha152x: Fix aha152x_setup() __setup handler return value

__setup() handlers should return 1 if the command line option is handled
and 0 if not (or maybe never return 0; doing so just pollutes init's
environment with strings that are not init arguments/parameters).

Return 1 from aha152x_setup() to indicate that the boot option has been
handled.

Link: lore.kernel.org/r/64644a2f-4a20-bab3-1e15-3b2cdd0defe3@omprussia.ru
Link: https://lore.kernel.org/r/20220223000623.5920-1-rdunlap@infradead.org
Cc: "Juergen E. Fischer" <fischer@norbit.de>
Cc: "James E.J. Bottomley" <jejb@linux.ibm.com>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
Reported-by: Igor Zhbanov <i.zhbanov@omprussia.ru>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aha152x.c