1. 24 4月, 2018 5 次提交
  2. 05 4月, 2018 1 次提交
  3. 04 4月, 2018 10 次提交
  4. 26 3月, 2018 1 次提交
  5. 23 3月, 2018 5 次提交
    • M
      media: tda9840: cleanup a warning · afdb4ca2
      Mauro Carvalho Chehab 提交于
      There's a false positive warning there:
      	drivers/media/i2c/tda9840.c:79 tda9840_status() error: uninitialized symbol 'byte'.
      
      Change the code to match our coding style, in order to fix it.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      afdb4ca2
    • M
      media: ir-kbd-i2c: change the if logic to avoid a warning · 9863bc49
      Mauro Carvalho Chehab 提交于
      While the code is correct, it produces this warning:
      	drivers/media/i2c/ir-kbd-i2c.c:593 zilog_ir_format() error: buffer overflow 'code_block->codes' 61 <= 173
      
      As static analyzers may be tricked by arithmetic expressions on
      comparisions. So, change the order, in order to shut up this
      false-positive warning.
      
      That also makes easier for humans to understand that it won't
      be trying to go past buffer size.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      9863bc49
    • M
      media: ir-kbd-i2c: improve error handling code · c3902dab
      Mauro Carvalho Chehab 提交于
      The current I2C error handling logic makes static analyzers
      confused, and it doesn't follow the coding style we're using:
      
      	drivers/media/i2c/ir-kbd-i2c.c:180 get_key_pixelview() error: uninitialized symbol 'b'.
      	drivers/media/i2c/ir-kbd-i2c.c:224 get_key_knc1() error: uninitialized symbol 'b'.
      	drivers/media/i2c/ir-kbd-i2c.c:226 get_key_knc1() error: uninitialized symbol 'b'.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      c3902dab
    • M
      media: tvaudio: improve error handling · b0121ca0
      Mauro Carvalho Chehab 提交于
      The error handling logic at tvaudio is broken on several ways,
      as it doesn't really check right when an error occurs.
      
      Change it to return the proper error code from read/write
      routines and fix the errors on reads.
      
      Shuts up the following warnings:
      	drivers/media/i2c/tvaudio.c:222 chip_read() error: uninitialized symbol 'buffer'.
      	drivers/media/i2c/tvaudio.c:223 chip_read() error: uninitialized symbol 'buffer'.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      b0121ca0
    • M
      media: ov5670: get rid of a series of __be warnings · baa6f19b
      Mauro Carvalho Chehab 提交于
      There are some troubles on this driver with respect to the usage
      of __be16 and __b32 macros:
      
      	drivers/media/i2c/ov5670.c:1857:27: warning: incorrect type in initializer (different base types)
      	drivers/media/i2c/ov5670.c:1857:27:    expected unsigned short [unsigned] [usertype] reg_addr_be
      	drivers/media/i2c/ov5670.c:1857:27:    got restricted __be16 [usertype] <noident>
      	drivers/media/i2c/ov5670.c:1880:16: warning: cast to restricted __be32
      	drivers/media/i2c/ov5670.c:1880:16: warning: cast to restricted __be32
      	drivers/media/i2c/ov5670.c:1880:16: warning: cast to restricted __be32
      	drivers/media/i2c/ov5670.c:1880:16: warning: cast to restricted __be32
      	drivers/media/i2c/ov5670.c:1880:16: warning: cast to restricted __be32
      	drivers/media/i2c/ov5670.c:1880:16: warning: cast to restricted __be32
      	drivers/media/i2c/ov5670.c:1901:13: warning: incorrect type in assignment (different base types)
      	drivers/media/i2c/ov5670.c:1901:13:    expected unsigned int [unsigned] [usertype] val
      	drivers/media/i2c/ov5670.c:1901:13:    got restricted __be32 [usertype] <noident>
      
      Fix them.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      baa6f19b
  6. 22 3月, 2018 6 次提交
  7. 21 3月, 2018 2 次提交
  8. 07 3月, 2018 10 次提交