]> git.baikalelectronics.ru Git - kernel.git/commit
vfio: use match_string() helper
authorYisheng Xie <xieyisheng1@huawei.com>
Mon, 21 May 2018 11:57:45 +0000 (19:57 +0800)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 8 Jun 2018 16:24:33 +0000 (10:24 -0600)
commit6b8ba1bc1a46e2fa29bc9d32d3ce615a881cf0a1
tree8bb90082ddb4b0312c18c08af2f9ae2459c322be
parenta850d3fb06b033ee47c523b9534fceb82c70becb
vfio: use match_string() helper

match_string() returns the index of an array for a matching string,
which can be used intead of open coded variant.

Cc: Alex Williamson <alex.williamson@redhat.com>
Cc: kvm@vger.kernel.org
Signed-off-by: Yisheng Xie <xieyisheng1@huawei.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio.c