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)
commit54fb07d030e1b2fa9d903a748f84398bbe6f213d
tree2667ea7b77c3bae0b5835fbb6b25114c23be1256
parentb29cd7c4c482d895f4b13ef1dfe85550529f38c9
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