mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-14 05:55:17 +00:00
s390/pci: avoid using strncmp with hardcoded length
Command line option values passed to __setup callbacks are always null-terminated and "s390_iommu=" may only accept "strict" as value. So replace strncmp with strcmp. While at it also make s390_iommu_setup return 1, which means this command line option is handled by this callback. Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
This commit is contained in:
parent
759d4899d9
commit
8dec6bd4ef
1 changed files with 2 additions and 2 deletions
Loading…
Add table
Add a link
Reference in a new issue