diff options
Diffstat (limited to 'tools/dpdk-devbind.py')
-rwxr-xr-x | tools/dpdk-devbind.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/dpdk-devbind.py b/tools/dpdk-devbind.py index fef59c41..e4c6d521 100755 --- a/tools/dpdk-devbind.py +++ b/tools/dpdk-devbind.py @@ -182,8 +182,7 @@ def check_modules(): # special case for vfio_pci (module is named vfio-pci, # but its .ko is named vfio_pci) - sysfs_mods = map(lambda a: - a if a != 'vfio_pci' else 'vfio-pci', sysfs_mods) + sysfs_mods = [a if a != 'vfio_pci' else 'vfio-pci' for a in sysfs_mods] for mod in mods: if mod["Name"] in sysfs_mods: |