commit | e77addf018f0c8d947ddc0bef2cd6d4791da7dde | [log] [tgz] |
---|---|---|
author | Yisheng Xie <xieyisheng1@huawei.com> | Mon May 21 19:57:45 2018 +0800 |
committer | Alex Williamson <alex.williamson@redhat.com> | Fri Jun 08 10:24:33 2018 -0600 |
tree | 8bb90082ddb4b0312c18c08af2f9ae2459c322be | |
parent | 6a62c1dfb5c7f6719361180fd0fdf45b15a35d95 [diff] |
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>