This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/media_tree.git tree:

Subject: [media] dib9000: read16/write16 could return an error code
Author:  Mauro Carvalho Chehab <[email protected]>
Date:    Mon Feb 22 13:43:57 2016 -0300

Both dib9000_read16_attr and dib9000_write16_attr can return an
error code. However, they currently return an u16. This produces the
following warnings on smatch:

        drivers/media/dvb-frontends/dib9000.c:262 dib9000_read16_attr() warn: 
signedness bug returning '(-121)'
        drivers/media/dvb-frontends/dib9000.c:321 dib9000_write16_attr() warn: 
signedness bug returning '(-22)'
        drivers/media/dvb-frontends/dib9000.c:353 dib9000_write16_attr() warn: 
signedness bug returning '(-121)'

Reviewed-by: Michael Ira Krufky <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/dvb-frontends/dib9000.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

---

http://git.linuxtv.org/cgit.cgi/media_tree.git/commit/?id=88d0518c0d91be4577de7a947af6d0255bbd0966
diff --git a/drivers/media/dvb-frontends/dib9000.c 
b/drivers/media/dvb-frontends/dib9000.c
index bab8c5a980a2..5897977d2d00 100644
--- a/drivers/media/dvb-frontends/dib9000.c
+++ b/drivers/media/dvb-frontends/dib9000.c
@@ -225,7 +225,7 @@ static u16 to_fw_output_mode(u16 mode)
        }
 }
 
-static u16 dib9000_read16_attr(struct dib9000_state *state, u16 reg, u8 * b, 
u32 len, u16 attribute)
+static int dib9000_read16_attr(struct dib9000_state *state, u16 reg, u8 *b, 
u32 len, u16 attribute)
 {
        u32 chunk_size = 126;
        u32 l;
@@ -309,7 +309,7 @@ static inline u16 dib9000_read_word_attr(struct 
dib9000_state *state, u16 reg, u
 
 #define dib9000_read16_noinc_attr(state, reg, b, len, attribute) 
dib9000_read16_attr(state, reg, b, len, (attribute) | 
DATA_BUS_ACCESS_MODE_NO_ADDRESS_INCREMENT)
 
-static u16 dib9000_write16_attr(struct dib9000_state *state, u16 reg, const u8 
* buf, u32 len, u16 attribute)
+static int dib9000_write16_attr(struct dib9000_state *state, u16 reg, const u8 
*buf, u32 len, u16 attribute)
 {
        u32 chunk_size = 126;
        u32 l;

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to