Skip to content
  1. Mar 22, 2018
  2. Mar 21, 2018
  3. Mar 08, 2018
  4. Mar 07, 2018
    • Mauro Carvalho Chehab's avatar
      media: s5c73m3-core: fix logic on a timeout condition · 39ad07b7
      Mauro Carvalho Chehab authored
      
      
      As warned by smatch:
      	drivers/media/i2c/s5c73m3/s5c73m3-core.c:268 s5c73m3_check_status() error: uninitialized symbol 'status'.
      
      if s5c73m3_check_status() is called too late, time_is_after_jiffies(end)
      will return 0, causing the while to abort before reading status.
      
      The current code will do the wrong thing here, as it will still
      check if status != value. The right fix here is to change
      the logic to ensure that it will always read the status.
      
      Suggested-by: default avatarAndrzej Hajda <a.hajda@samsung.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      39ad07b7
    • Mauro Carvalho Chehab's avatar
      media: cxd2880: remove unused vars · 8239bac1
      Mauro Carvalho Chehab authored
      
      
      drivers/media/dvb-frontends/cxd2880/cxd2880_top.c: In function ‘cxd2880_set_ber_per_period_t’:
      drivers/media/dvb-frontends/cxd2880/cxd2880_top.c:677:34: warning: variable ‘c’ set but not used [-Wunused-but-set-variable]
        struct dtv_frontend_properties *c;
                                        ^
      drivers/media/dvb-frontends/cxd2880/cxd2880_top.c: In function ‘cxd2880_set_ber_per_period_t2’:
      drivers/media/dvb-frontends/cxd2880/cxd2880_top.c:790:34: warning: variable ‘c’ set but not used [-Wunused-but-set-variable]
        struct dtv_frontend_properties *c;
                                        ^
      drivers/media/dvb-frontends/cxd2880/cxd2880_top.c: In function ‘cxd2880_get_frontend’:
      drivers/media/dvb-frontends/cxd2880/cxd2880_top.c:1799:23: warning: variable ‘priv’ set but not used [-Wunused-but-set-variable]
        struct cxd2880_priv *priv = NULL;
                             ^~~~
      
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      8239bac1