]> git.baikalelectronics.ru Git - kernel.git/commit
s390/sclp: avoid using strncmp with hardcoded length
authorVasily Gorbik <gor@linux.ibm.com>
Mon, 19 Aug 2019 15:13:04 +0000 (17:13 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Thu, 29 Aug 2019 13:34:58 +0000 (15:34 +0200)
commita5f5e2cf6eb91d14994eb5d3dcb1272de82dafe8
tree2667ea7b77c3bae0b5835fbb6b25114c23be1256
parentf4c1b19df4750299f8c5f9b27beaaebcd7ad4b49
s390/sclp: avoid using strncmp with hardcoded length

"earlyprintk" option documentation does not clearly state which
platform supports which additional values (e.g. ",keep"). Preserve old
option behaviour and reuse str_has_prefix instead of strncmp for prefix
testing.

Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/early_printk.c