1. 22 8月, 2015 26 次提交
  2. 17 8月, 2015 11 次提交
  3. 16 8月, 2015 3 次提交
    • M
      [media] sr030pc30: don't read a new pointer · 27c03975
      Mauro Carvalho Chehab 提交于
      sr030pc30_get_fmt() can only succeed if both info->curr_win and
      info->curr_fmt are not NULL.
      
      If one of those vars are null, the curent code would call:
      	ret = sr030pc30_set_params(sd);
      
      If the curr_win is null, it will return -EINVAL, as it would be
      expected. However, if curr_fmt is NULL, the function won't
      set it.
      
      The code will then try to read from it:
      
              mf->code        = info->curr_fmt->code;
              mf->colorspace  = info->curr_fmt->colorspace;
      
      with obviouly won't work.
      
      This got reported by smatch:
      	drivers/media/i2c/sr030pc30.c:505 sr030pc30_get_fmt() error: we previously assumed 'info->curr_win' could be null (see line 499)
      	drivers/media/i2c/sr030pc30.c:507 sr030pc30_get_fmt() error: we previously assumed 'info->curr_fmt' could be null (see line 499)
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      27c03975
    • M
      [media] ov2659: get rid of unused values · ab9a953b
      Mauro Carvalho Chehab 提交于
      Why to store the chosed values for prediv, postdiv and mult if
      those won't be used?
      
      drivers/media/i2c/ov2659.c: In function 'ov2659_pll_calc_params':
      drivers/media/i2c/ov2659.c:912:35: warning: variable 's_mult' set but not used [-Wunused-but-set-variable]
        u32 s_prediv = 1, s_postdiv = 1, s_mult = 1;
                                         ^
      drivers/media/i2c/ov2659.c:912:20: warning: variable 's_postdiv' set but not used [-Wunused-but-set-variable]
        u32 s_prediv = 1, s_postdiv = 1, s_mult = 1;
                          ^
      drivers/media/i2c/ov2659.c:912:6: warning: variable 's_prediv' set but not used [-Wunused-but-set-variable]
        u32 s_prediv = 1, s_postdiv = 1, s_mult = 1;
            ^
      
      This is likely some leftover from some past change.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      ab9a953b
    • M
      [media] ov9650: remove an extra space · 12976516
      Mauro Carvalho Chehab 提交于
      drivers/media/i2c/ov9650.c:1439 ov965x_detect_sensor() warn: inconsistent indenting
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      12976516