]> 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)
commit214ef522d89b62c187701d197bd1b0b2c1549b4f
tree2667ea7b77c3bae0b5835fbb6b25114c23be1256
parentc8a7e440b47df69401bd3c7313af00a445fe9a34
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