]> asedeno.scripts.mit.edu Git - linux.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)
commitb29cd7c4c482d895f4b13ef1dfe85550529f38c9
treefe204bd6f06e46441594d62f4a845d61b4ccf449
parent8dec6bd4ef327f48eb790a48cba0e833109d4e41
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