media: imx7-mipi-csis: Remove unneeded 'ret' initialization
authorFabio Estevam <festevam@gmail.com>
Fri, 31 May 2019 17:45:05 +0000 (13:45 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 5 Jun 2019 16:54:29 +0000 (12:54 -0400)
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: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/imx/imx7-mipi-csis.c

index 1b538ae77364cb3ddd443f475486d4d7dafbd576..acc9936dd075dfdd3864aaae951fe00ded943300 100644 (file)
@@ -950,7 +950,7 @@ static int mipi_csis_probe(struct platform_device *pdev)
        struct device *dev = &pdev->dev;
        struct resource *mem_res;
        struct csi_state *state;
-       int ret = -ENOMEM;
+       int ret;
 
        state = devm_kzalloc(dev, sizeof(*state), GFP_KERNEL);
        if (!state)