From: Fabio Estevam Date: Fri, 31 May 2019 17:45:05 +0000 (-0400) Subject: media: imx7-mipi-csis: Remove unneeded 'ret' initialization X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7acc1f91bfb29509fd41144392aa9c761944e78b;p=openwrt%2Fstaging%2Fblogic.git 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: Fabio Estevam Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/staging/media/imx/imx7-mipi-csis.c b/drivers/staging/media/imx/imx7-mipi-csis.c index 1b538ae77364..acc9936dd075 100644 --- a/drivers/staging/media/imx/imx7-mipi-csis.c +++ b/drivers/staging/media/imx/imx7-mipi-csis.c @@ -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)