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

Commit 370257b2 authored by Wolfram Sang's avatar Wolfram Sang
Browse files

i2c: ismt: add error return code in probe()



Return error code in the error case, and not success.

Acked-by: default avatarNeil Horman <nhorman@tuxdriver.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 7be60f2b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -879,6 +879,7 @@ ismt_probe(struct pci_dev *pdev, const struct pci_device_id *id)
						 DMA_BIT_MASK(32)) != 0)) {
			dev_err(&pdev->dev, "pci_set_dma_mask fail %p\n",
				pdev);
			err = -ENODEV;
			goto fail;
		}
	}