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

Commit e4946cdc authored by Axel Lin's avatar Axel Lin Committed by Philipp Zabel
Browse files

gpu: ipu-v3: Return proper error on ipu_add_client_devices error path



Avoid returning an uninitialized variable in the error path.

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
parent b6c044a3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1116,9 +1116,11 @@ static int ipu_add_client_devices(struct ipu_soc *ipu, unsigned long ipu_base)
				id++, &reg->pdata, sizeof(reg->pdata));
		}

		if (IS_ERR(pdev))
		if (IS_ERR(pdev)) {
			ret = PTR_ERR(pdev);
			goto err_register;
		}
	}

	return 0;