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

Subject: [media] it913x-fe: use ARRAY_SIZE() as a cleanup
Author:  Dan Carpenter <[email protected]>
Date:    Tue Aug 14 02:51:20 2012 -0300

This code looks suspicious, but it turns out that "nv" is an array of u8
so sizeof() is the same as ARRAY_SIZE().  Using ARRAY_SIZE() is more
readable though.

Signed-off-by: Dan Carpenter <[email protected]>
Cc: Malcolm Priestley <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/dvb-frontends/it913x-fe.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

---

http://git.linuxtv.org/media_tree.git?a=commitdiff;h=5359805193dc83e1aab2f8e230d57c649363c5c5

diff --git a/drivers/media/dvb-frontends/it913x-fe.c 
b/drivers/media/dvb-frontends/it913x-fe.c
index 708cbf1..6e1c6eb 100644
--- a/drivers/media/dvb-frontends/it913x-fe.c
+++ b/drivers/media/dvb-frontends/it913x-fe.c
@@ -199,7 +199,7 @@ static int it913x_init_tuner(struct it913x_fe_state *state)
 
        if (reg < 0)
                return -ENODEV;
-       else if (reg < sizeof(nv))
+       else if (reg < ARRAY_SIZE(nv))
                nv_val = nv[reg];
        else
                nv_val = 2;

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

Reply via email to