diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-06-24 18:09:49 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-06-24 18:09:49 +0300 |
commit | ba4cd399c57e9056c5c4fb69561a74e9dd3c53c4 (patch) | |
tree | 1154a7ea1cee2ed721655829f32ecd9314878087 /drivers/media/platform/vivid/vivid-sdr-cap.c | |
parent | 40bcfdac9651e23b92a888c983bf0f0a28d7bfbb (diff) | |
download | linux-ba4cd399c57e9056c5c4fb69561a74e9dd3c53c4.tar.xz |
vivid: remove some unused vars
Gcc 6.1 warns about some unused vars. Remove them:
drivers/media/platform/vivid/vivid-vid-cap.c:40:2: warning: 'tpf_default' defined but not used [-Wunused-const-variable=]
tpf_default = {.numerator = 1, .denominator = 30};
^~~~~~~~~~~
drivers/media/platform/vivid/vivid-sdr-cap.c:54:27: warning: 'NUM_FORMATS' defined but not used [-Wunused-const-variable=]
static const unsigned int NUM_FORMATS = ARRAY_SIZE(formats);
^~~~~~~~~~~
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/vivid/vivid-sdr-cap.c')
-rw-r--r-- | drivers/media/platform/vivid/vivid-sdr-cap.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/platform/vivid/vivid-sdr-cap.c b/drivers/media/platform/vivid/vivid-sdr-cap.c index 3d1604cb982f..1428e31a2875 100644 --- a/drivers/media/platform/vivid/vivid-sdr-cap.c +++ b/drivers/media/platform/vivid/vivid-sdr-cap.c @@ -51,8 +51,6 @@ static const struct vivid_format formats[] = { }, }; -static const unsigned int NUM_FORMATS = ARRAY_SIZE(formats); - static const struct v4l2_frequency_band bands_adc[] = { { .tuner = 0, |