vivid: remove some unused vars
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 24 Jun 2016 15:09:49 +0000 (12:09 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 24 Jun 2016 15:09:49 +0000 (12:09 -0300)
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>
drivers/media/platform/vivid/vivid-sdr-cap.c
drivers/media/platform/vivid/vivid-vid-cap.c

index 3d1604cb982f2cf525933c6d3dde8dc22fcf16f7..1428e31a28753d67886b8fcd2dd6092fa1a15ce9 100644 (file)
@@ -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,
index 4f730f355a1720b295073f23891454c1f3cd3bde..fdca33fc20b04c5d232a1a842c628998738651cc 100644 (file)
@@ -36,8 +36,7 @@
 /* timeperframe: min/max and default */
 static const struct v4l2_fract
        tpf_min     = {.numerator = 1,          .denominator = FPS_MAX},
-       tpf_max     = {.numerator = FPS_MAX,    .denominator = 1},
-       tpf_default = {.numerator = 1,          .denominator = 30};
+       tpf_max     = {.numerator = FPS_MAX,    .denominator = 1};
 
 static const struct vivid_fmt formats_ovl[] = {
        {