diff options
author | Mike Isely <isely@pobox.com> | 2007-01-19 21:39:17 -0600 |
---|---|---|
committer | Mike Isely <isely@pobox.com> | 2007-01-19 21:39:17 -0600 |
commit | 6af46f716fc68b280bd9eadb67ab578f4f820b45 (patch) | |
tree | 8431b0b9db87124eb7c07b69769ca1ac7f159d66 /linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c | |
parent | 7994491da22f0e62bd89c2d404d0edae2077bc04 (diff) | |
download | mediapointer-dvb-s2-6af46f716fc68b280bd9eadb67ab578f4f820b45.tar.gz mediapointer-dvb-s2-6af46f716fc68b280bd9eadb67ab578f4f820b45.tar.bz2 |
pvrusb2: Use ARRAY_SIZE wherever possible
From: Mike Isely <isely@pobox.com>
Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c')
-rw-r--r-- | linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c index 652ba5e18..b07bd58ea 100644 --- a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c +++ b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c @@ -724,7 +724,7 @@ static void ctrl_stdenumcur_clear_dirty(struct pvr2_ctrl *cptr) #define DEFENUM(tab) \ .type = pvr2_ctl_enum, \ - .def.type_enum.count = (sizeof(tab)/sizeof((tab)[0])), \ + .def.type_enum.count = ARRAY_SIZE(tab), \ .def.type_enum.value_names = tab #define DEFBOOL \ |