diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2017-08-11 09:54:16 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2017-08-23 07:31:47 -0400 |
commit | 673cfddf6e05749c8bdf044140415fcefd5e9546 (patch) | |
tree | d124f239ddc3cb82466fd7453c72a9c1501ab01d | |
parent | d2907225cf9621140664209037bbce5107e02c91 (diff) |
s390: fix 'novx' early parameter handling
Specifying the 'novx' kernel parameter always results in a warning:
Malformed early option 'novx'
The reason for this is that the novx early parameter handling function
always returns a non-zero value which means that an error occurred.
Fix this and return the correct zero value instead.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r-- | arch/s390/kernel/early.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/early.c b/arch/s390/kernel/early.c index added6790460..ca8cd80e8feb 100644 --- a/arch/s390/kernel/early.c +++ b/arch/s390/kernel/early.c | |||
@@ -420,7 +420,7 @@ static int __init disable_vector_extension(char *str) | |||
420 | { | 420 | { |
421 | S390_lowcore.machine_flags &= ~MACHINE_FLAG_VX; | 421 | S390_lowcore.machine_flags &= ~MACHINE_FLAG_VX; |
422 | __ctl_clear_bit(0, 17); | 422 | __ctl_clear_bit(0, 17); |
423 | return 1; | 423 | return 0; |
424 | } | 424 | } |
425 | early_param("novx", disable_vector_extension); | 425 | early_param("novx", disable_vector_extension); |
426 | 426 | ||