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-ctrl.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-ctrl.c')
-rw-r--r-- | linux/drivers/media/video/pvrusb2/pvrusb2-ctrl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-ctrl.c b/linux/drivers/media/video/pvrusb2/pvrusb2-ctrl.c index 3bff4e8aa..83d1484a9 100644 --- a/linux/drivers/media/video/pvrusb2/pvrusb2-ctrl.c +++ b/linux/drivers/media/video/pvrusb2/pvrusb2-ctrl.c @@ -520,9 +520,8 @@ int pvr2_ctrl_sym_to_value(struct pvr2_ctrl *cptr, } if (maskptr) *maskptr = ~0; } else if (cptr->info->type == pvr2_ctl_bool) { - ret = parse_token( - ptr,len,valptr,boolNames, - sizeof(boolNames)/sizeof(boolNames[0])); + ret = parse_token(ptr,len,valptr,boolNames, + ARRAY_SIZE(boolNames)); if (ret == 1) { *valptr = *valptr ? !0 : 0; } else if (ret == 0) { |