]> git.baikalelectronics.ru Git - kernel.git/commit
s390/module: avoid using strncmp with hardcoded length
authorVasily Gorbik <gor@linux.ibm.com>
Mon, 19 Aug 2019 15:05:44 +0000 (17:05 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Thu, 29 Aug 2019 13:34:57 +0000 (15:34 +0200)
commitf4c1b19df4750299f8c5f9b27beaaebcd7ad4b49
treefe204bd6f06e46441594d62f4a845d61b4ccf449
parent4e22391947ec18187e393bf05f8b776eef15ea07
s390/module: avoid using strncmp with hardcoded length

Reuse str_has_prefix instead of strncmp with hardcoded length to
make the intent of a comparison more obvious.

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