Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9e01846 authored by Ben Hutchings's avatar Ben Hutchings
Browse files

sfc: Avoid assignment in an if-statement, reported by checkpatch



Fix the following error:

ERROR: do not use assignment in if condition

Signed-off-by: default avatarBen Hutchings <bhutchings@solarflare.com>
parent 9c636baf
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -1069,9 +1069,11 @@ static int efx_init_io(struct efx_nic *efx)
	 * masks event though they reject 46 bit masks.
	 */
	while (dma_mask > 0x7fffffffUL) {
		if (pci_dma_supported(pci_dev, dma_mask) &&
		    ((rc = pci_set_dma_mask(pci_dev, dma_mask)) == 0))
		if (pci_dma_supported(pci_dev, dma_mask)) {
			rc = pci_set_dma_mask(pci_dev, dma_mask);
			if (rc == 0)
				break;
		}
		dma_mask >>= 1;
	}
	if (rc) {