diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-08-02 22:38:18 -0400 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2014-09-02 04:43:15 -0400 |
commit | e4946cdcabcffd4814e153e71d28884b94c65e9e (patch) | |
tree | d6154c0f51991d5a942fcc0a811781da2966e274 /drivers/gpu/ipu-v3 | |
parent | b6c044a3d881c1b01fe0220ad76e548ea5d79b1c (diff) |
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>
Diffstat (limited to 'drivers/gpu/ipu-v3')
-rw-r--r-- | drivers/gpu/ipu-v3/ipu-common.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/ipu-v3/ipu-common.c b/drivers/gpu/ipu-v3/ipu-common.c index 04e7b2eafbdd..e340bebd3419 100644 --- a/drivers/gpu/ipu-v3/ipu-common.c +++ b/drivers/gpu/ipu-v3/ipu-common.c | |||
@@ -1116,8 +1116,10 @@ static int ipu_add_client_devices(struct ipu_soc *ipu, unsigned long ipu_base) | |||
1116 | id++, ®->pdata, sizeof(reg->pdata)); | 1116 | id++, ®->pdata, sizeof(reg->pdata)); |
1117 | } | 1117 | } |
1118 | 1118 | ||
1119 | if (IS_ERR(pdev)) | 1119 | if (IS_ERR(pdev)) { |
1120 | ret = PTR_ERR(pdev); | ||
1120 | goto err_register; | 1121 | goto err_register; |
1122 | } | ||
1121 | } | 1123 | } |
1122 | 1124 | ||
1123 | return 0; | 1125 | return 0; |