Commit 7acc1f91 authored by Fabio Estevam's avatar Fabio Estevam Committed by Mauro Carvalho Chehab

media: imx7-mipi-csis: Remove unneeded 'ret' initialization

There is no need for initializing the 'ret' variable as it will
be assigned at:

	ret = mipi_csis_parse_dt(pdev, state);

Remove the unneeded initialization.
Signed-off-by: default avatarFabio Estevam <festevam@gmail.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent 2b393f91
...@@ -950,7 +950,7 @@ static int mipi_csis_probe(struct platform_device *pdev) ...@@ -950,7 +950,7 @@ static int mipi_csis_probe(struct platform_device *pdev)
struct device *dev = &pdev->dev; struct device *dev = &pdev->dev;
struct resource *mem_res; struct resource *mem_res;
struct csi_state *state; struct csi_state *state;
int ret = -ENOMEM; int ret;
state = devm_kzalloc(dev, sizeof(*state), GFP_KERNEL); state = devm_kzalloc(dev, sizeof(*state), GFP_KERNEL);
if (!state) if (!state)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment