]> git.pld-linux.org Git - projects/geninitrd.git/blobdiff - mod-sata.sh
Left side expands to decimal while right side was in hex. Convert right side to decimal.
[projects/geninitrd.git] / mod-sata.sh
index 19a234000deca198ef4800656c7168348be24762..ed1a4ee311db0c5dacb05896f011fb6d51562597 100644 (file)
@@ -33,7 +33,7 @@ find_modules_by_class() {
        local PCI_ANY_ID=0x0000ffff pci_module vendor device subvendor subdevice class class_mask driver_data
        while read pci_module vendor device subvendor subdevice class class_mask driver_data; do
                # match class
-               [ "$(($req_class & $class_mask))" = "$class" ] || continue
+               [ "$(($req_class & $class_mask))" = "$(($class))" ] || continue
                # match vendor
                [ "$1" = "$vendor" ] || continue
                # match device, allow PCI_ANY_ID
This page took 0.024371 seconds and 4 git commands to generate.