Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=af520a3478b59476ed61eddee73948807398e358
Commit:     af520a3478b59476ed61eddee73948807398e358
Parent:     261efd12fc291e6b3b42011201bfd011484ad90b
Author:     Andi Drebes <[EMAIL PROTECTED]>
AuthorDate: Mon Jul 30 11:48:10 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Tue Oct 9 22:03:33 2007 -0300

    V4L/DVB (5941): Ttpci/budget-av.c: ARRAY_SIZE()
    
    This patch replaces an array size calculation done using sizeof
    with an invocation of the ARRAY_SIZE macro.
    
    Tested by compilation on an i386 box using "allyesconfig".
    Diffed against Linus' git-tree.
    
    Signed-off-by: Andi Drebes <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/dvb/ttpci/budget-av.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/media/dvb/ttpci/budget-av.c 
b/drivers/media/dvb/ttpci/budget-av.c
index 0aee7a1..3439c98 100644
--- a/drivers/media/dvb/ttpci/budget-av.c
+++ b/drivers/media/dvb/ttpci/budget-av.c
@@ -1232,7 +1232,7 @@ static struct saa7146_ext_vv vv_data = {
        .capabilities = 0,      // perhaps later: V4L2_CAP_VBI_CAPTURE, but 
that need tweaking with the saa7113
        .flags = 0,
        .stds = &standard[0],
-       .num_stds = sizeof(standard) / sizeof(struct saa7146_standard),
+       .num_stds = ARRAY_SIZE(standard),
        .ioctls = &ioctls[0],
        .ioctl = av_ioctl,
 };
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to