PCI: Remove assignment from "if" conditions
[deliverable/linux.git] / drivers / pci / hotplug / shpchp_hpc.c
index 1d89916351ed06a190fe42797b57e6f72678caa9..7d223e9080efb34aef5b1d02f77732c77b812402 100644 (file)
@@ -466,7 +466,8 @@ static int hpc_get_adapter_speed(struct slot *slot, enum pci_bus_speed *value)
        u8 m66_cap  = !!(slot_reg & MHZ66_CAP);
        u8 pi, pcix_cap;
 
-       if ((retval = hpc_get_prog_int(slot, &pi)))
+       retval = hpc_get_prog_int(slot, &pi);
+       if (retval)
                return retval;
 
        switch (pi) {
This page took 0.024211 seconds and 5 git commands to generate.