diff options
| author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-06-26 08:16:39 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-07-17 10:19:41 -0400 |
| commit | 9a01968c75fa46ab99564678028eea48973dfa7f (patch) | |
| tree | c7e3efb6e15aade02ed1338600bb122cb1e1f69e | |
| parent | a3db9d60a118571e696b684a6e8c692a2b064941 (diff) | |
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: Mauro Carvalho Chehab <mchehab@s-opensource.com>
| -rw-r--r-- | drivers/media/platform/davinci/vpif_capture.c | 2 | ||||
| -rw-r--r-- | drivers/media/platform/davinci/vpif_display.c | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/drivers/media/platform/davinci/vpif_capture.c b/drivers/media/platform/davinci/vpif_capture.c index d78580f9e431..4be6554c56c5 100644 --- a/drivers/media/platform/davinci/vpif_capture.c +++ b/drivers/media/platform/davinci/vpif_capture.c | |||
| @@ -1719,7 +1719,6 @@ vpif_unregister: | |||
| 1719 | */ | 1719 | */ |
| 1720 | static int vpif_remove(struct platform_device *device) | 1720 | static int vpif_remove(struct platform_device *device) |
| 1721 | { | 1721 | { |
| 1722 | struct common_obj *common; | ||
| 1723 | struct channel_obj *ch; | 1722 | struct channel_obj *ch; |
| 1724 | int i; | 1723 | int i; |
| 1725 | 1724 | ||
| @@ -1730,7 +1729,6 @@ static int vpif_remove(struct platform_device *device) | |||
| 1730 | for (i = 0; i < VPIF_CAPTURE_MAX_DEVICES; i++) { | 1729 | for (i = 0; i < VPIF_CAPTURE_MAX_DEVICES; i++) { |
| 1731 | /* Get the pointer to the channel object */ | 1730 | /* Get the pointer to the channel object */ |
| 1732 | ch = vpif_obj.dev[i]; | 1731 | ch = vpif_obj.dev[i]; |
| 1733 | common = &ch->common[VPIF_VIDEO_INDEX]; | ||
| 1734 | /* Unregister video device */ | 1732 | /* Unregister video device */ |
| 1735 | video_unregister_device(&ch->video_dev); | 1733 | video_unregister_device(&ch->video_dev); |
| 1736 | kfree(vpif_obj.dev[i]); | 1734 | kfree(vpif_obj.dev[i]); |
diff --git a/drivers/media/platform/davinci/vpif_display.c b/drivers/media/platform/davinci/vpif_display.c index b5ac6ce626b3..bf982bf86542 100644 --- a/drivers/media/platform/davinci/vpif_display.c +++ b/drivers/media/platform/davinci/vpif_display.c | |||
| @@ -1339,7 +1339,6 @@ vpif_unregister: | |||
| 1339 | */ | 1339 | */ |
| 1340 | static int vpif_remove(struct platform_device *device) | 1340 | static int vpif_remove(struct platform_device *device) |
| 1341 | { | 1341 | { |
| 1342 | struct common_obj *common; | ||
| 1343 | struct channel_obj *ch; | 1342 | struct channel_obj *ch; |
| 1344 | int i; | 1343 | int i; |
| 1345 | 1344 | ||
| @@ -1350,7 +1349,6 @@ static int vpif_remove(struct platform_device *device) | |||
| 1350 | for (i = 0; i < VPIF_DISPLAY_MAX_DEVICES; i++) { | 1349 | for (i = 0; i < VPIF_DISPLAY_MAX_DEVICES; i++) { |
| 1351 | /* Get the pointer to the channel object */ | 1350 | /* Get the pointer to the channel object */ |
| 1352 | ch = vpif_obj.dev[i]; | 1351 | ch = vpif_obj.dev[i]; |
| 1353 | common = &ch->common[VPIF_VIDEO_INDEX]; | ||
| 1354 | /* Unregister video device */ | 1352 | /* Unregister video device */ |
| 1355 | video_unregister_device(&ch->video_dev); | 1353 | video_unregister_device(&ch->video_dev); |
| 1356 | kfree(vpif_obj.dev[i]); | 1354 | kfree(vpif_obj.dev[i]); |
