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: Axel Lin <axel.lin@ingics.com> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
This commit is contained in:
parent
b6c044a3d8
commit
e4946cdcab
1 changed files with 3 additions and 1 deletions
|
@ -1116,8 +1116,10 @@ static int ipu_add_client_devices(struct ipu_soc *ipu, unsigned long ipu_base)
|
||||||
id++, ®->pdata, sizeof(reg->pdata));
|
id++, ®->pdata, sizeof(reg->pdata));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IS_ERR(pdev))
|
if (IS_ERR(pdev)) {
|
||||||
|
ret = PTR_ERR(pdev);
|
||||||
goto err_register;
|
goto err_register;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue