[media] rcar-vin: get rid of an unused var
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 16 Jun 2016 10:44:42 +0000 (07:44 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 16 Jun 2016 10:45:46 +0000 (07:45 -0300)
drivers/media/platform/rcar-vin/rcar-core.c: In function 'rvin_graph_notify_complete':
drivers/media/platform/rcar-vin/rcar-core.c:65:22: warning: variable 'sd' set but not used [-Wunused-but-set-variable]
  struct v4l2_subdev *sd;
                      ^

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/rcar-vin/rcar-core.c

index 341c0819aed7d8fedad16db81943a9d4a81b193b..4b2007b734630acc50ab97c029d455a3d11fb68d 100644 (file)
@@ -62,12 +62,9 @@ static int rvin_mbus_supported(struct rvin_dev *vin)
 
 static int rvin_graph_notify_complete(struct v4l2_async_notifier *notifier)
 {
-       struct v4l2_subdev *sd;
        struct rvin_dev *vin = notifier_to_vin(notifier);
        int ret;
 
-       sd = vin_to_source(vin);
-
        ret = v4l2_device_register_subdev_nodes(&vin->v4l2_dev);
        if (ret < 0) {
                vin_err(vin, "Failed to register subdev nodes\n");