]> git.baikalelectronics.ru Git - kernel.git/commit
s390/pci: avoid using strncmp with hardcoded length
authorVasily Gorbik <gor@linux.ibm.com>
Mon, 19 Aug 2019 14:29:01 +0000 (16:29 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Thu, 29 Aug 2019 13:34:57 +0000 (15:34 +0200)
commit4e22391947ec18187e393bf05f8b776eef15ea07
tree54e67b7e9afd55ebff581e93691ca4196042dc98
parentd2337a64f34634cb13cdf0b9f419927b0329ec41
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>
arch/s390/pci/pci_dma.c