diff options
author | Fabio Estevam <festevam@gmail.com> | 2019-05-31 13:45:05 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-06-05 12:54:29 -0400 |
commit | 7acc1f91bfb29509fd41144392aa9c761944e78b (patch) | |
tree | 175366cedd6ea277eb2a56519f410a0ee80e6148 /drivers/staging | |
parent | 2b393f91c651c16d5c09f5c7aa689e58a79df34e (diff) | |
download | linux-7acc1f91bfb29509fd41144392aa9c761944e78b.tar.bz2 |
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 <festevam@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/media/imx/imx7-mipi-csis.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |