From 66fa12003678512a599fb6f7f753e3f4f512a100 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Thu, 16 Jun 2016 07:44:42 -0300 Subject: [PATCH] [media] rcar-vin: get rid of an unused var 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 --- drivers/media/platform/rcar-vin/rcar-core.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/media/platform/rcar-vin/rcar-core.c b/drivers/media/platform/rcar-vin/rcar-core.c index 341c0819aed7..4b2007b73463 100644 --- a/drivers/media/platform/rcar-vin/rcar-core.c +++ b/drivers/media/platform/rcar-vin/rcar-core.c @@ -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"); -- 2.20.1