summaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@iki.fi>2015-04-10 19:42:47 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-06-28 07:54:30 -0300
commita92320e9b64f65118797a826ce945eba83613b0c (patch)
tree6afa698a2c360eb9554f23b45fdf1775dcc7ec2f /drivers/media/i2c
parentc2b40111a2ec4b3821f5bf42a127bc3d6929ddd5 (diff)
downloadlinux-stable-a92320e9b64f65118797a826ce945eba83613b0c.tar.gz
linux-stable-a92320e9b64f65118797a826ce945eba83613b0c.tar.bz2
linux-stable-a92320e9b64f65118797a826ce945eba83613b0c.zip
[media] smiapp: Remove useless rval assignment in smiapp_get_pdata()
The value is not used after the assignment. Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/i2c')
-rw-r--r--drivers/media/i2c/smiapp/smiapp-core.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/i2c/smiapp/smiapp-core.c b/drivers/media/i2c/smiapp/smiapp-core.c
index 3dfe387abf6e..d08ab6c8357c 100644
--- a/drivers/media/i2c/smiapp/smiapp-core.c
+++ b/drivers/media/i2c/smiapp/smiapp-core.c
@@ -3044,10 +3044,8 @@ static struct smiapp_platform_data *smiapp_get_pdata(struct device *dev)
pdata->op_sys_clock = devm_kcalloc(
dev, bus_cfg->nr_of_link_frequencies + 1 /* guardian */,
sizeof(*pdata->op_sys_clock), GFP_KERNEL);
- if (!pdata->op_sys_clock) {
- rval = -ENOMEM;
+ if (!pdata->op_sys_clock)
goto out_err;
- }
for (i = 0; i < bus_cfg->nr_of_link_frequencies; i++) {
pdata->op_sys_clock[i] = bus_cfg->link_frequencies[i];