qm1d1b0004: fix a warning about an unused default_cfg var
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 10 May 2018 10:55:15 +0000 (06:55 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 10 May 2018 10:55:15 +0000 (06:55 -0400)
As warned by gcc:

drivers/media/tuners/qm1d1b0004.c:62:39: warning: 'default_cfg' defined but not used [-Wunused-const-variable=]
 static const struct qm1d1b0004_config default_cfg = {
                                       ^~~~~~~~~~~

This var is currently unused. So, comment it out.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/tuners/qm1d1b0004.c

index 9dac1b875c189007ad68ef38c53d09c7578c61b7..b4495cc1626b15538b0a5d96803f67a8ec3667e2 100644 (file)
 #define QM1D1B0004_XTL_FREQ 4000
 #define QM1D1B0004_LPF_FALLBACK 30000
 
+#if 0 /* Currently unused */
 static const struct qm1d1b0004_config default_cfg = {
        .lpf_freq = QM1D1B0004_CFG_LPF_DFLT,
        .half_step = false,
 };
+#endif
 
 struct qm1d1b0004_state {
        struct qm1d1b0004_config cfg;