[media] smiapp: Remove useless rval assignment in smiapp_get_pdata()
authorSakari Ailus <sakari.ailus@iki.fi>
Fri, 10 Apr 2015 22:42:47 +0000 (19:42 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 28 Jun 2016 10:54:30 +0000 (07:54 -0300)
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>
drivers/media/i2c/smiapp/smiapp-core.c

index 3dfe387abf6e6a52188ff5a8dfb3671186ce1e09..d08ab6c8357c0c970eafe75d4f7eb1612f31d04a 100644 (file)
@@ -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];