Commit 9a01968c authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

media: davinci: variable 'common' set but not used

Get rid of those two warnings:
drivers/media/platform/davinci/vpif_capture.c: In function 'vpif_remove':
drivers/media/platform/davinci/vpif_capture.c:1722:21: warning: variable 'common' set but not used [-Wunused-but-set-variable]
  struct common_obj *common;
                     ^~~~~~
drivers/media/platform/davinci/vpif_display.c: In function 'vpif_remove':
drivers/media/platform/davinci/vpif_display.c:1342:21: warning: variable 'common' set but not used [-Wunused-but-set-variable]
  struct common_obj *common;
                     ^~~~~~
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent a3db9d60
...@@ -1719,7 +1719,6 @@ static __init int vpif_probe(struct platform_device *pdev) ...@@ -1719,7 +1719,6 @@ static __init int vpif_probe(struct platform_device *pdev)
*/ */
static int vpif_remove(struct platform_device *device) static int vpif_remove(struct platform_device *device)
{ {
struct common_obj *common;
struct channel_obj *ch; struct channel_obj *ch;
int i; int i;
...@@ -1730,7 +1729,6 @@ static int vpif_remove(struct platform_device *device) ...@@ -1730,7 +1729,6 @@ static int vpif_remove(struct platform_device *device)
for (i = 0; i < VPIF_CAPTURE_MAX_DEVICES; i++) { for (i = 0; i < VPIF_CAPTURE_MAX_DEVICES; i++) {
/* Get the pointer to the channel object */ /* Get the pointer to the channel object */
ch = vpif_obj.dev[i]; ch = vpif_obj.dev[i];
common = &ch->common[VPIF_VIDEO_INDEX];
/* Unregister video device */ /* Unregister video device */
video_unregister_device(&ch->video_dev); video_unregister_device(&ch->video_dev);
kfree(vpif_obj.dev[i]); kfree(vpif_obj.dev[i]);
......
...@@ -1339,7 +1339,6 @@ static __init int vpif_probe(struct platform_device *pdev) ...@@ -1339,7 +1339,6 @@ static __init int vpif_probe(struct platform_device *pdev)
*/ */
static int vpif_remove(struct platform_device *device) static int vpif_remove(struct platform_device *device)
{ {
struct common_obj *common;
struct channel_obj *ch; struct channel_obj *ch;
int i; int i;
...@@ -1350,7 +1349,6 @@ static int vpif_remove(struct platform_device *device) ...@@ -1350,7 +1349,6 @@ static int vpif_remove(struct platform_device *device)
for (i = 0; i < VPIF_DISPLAY_MAX_DEVICES; i++) { for (i = 0; i < VPIF_DISPLAY_MAX_DEVICES; i++) {
/* Get the pointer to the channel object */ /* Get the pointer to the channel object */
ch = vpif_obj.dev[i]; ch = vpif_obj.dev[i];
common = &ch->common[VPIF_VIDEO_INDEX];
/* Unregister video device */ /* Unregister video device */
video_unregister_device(&ch->video_dev); video_unregister_device(&ch->video_dev);
kfree(vpif_obj.dev[i]); kfree(vpif_obj.dev[i]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment