aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pvrusb2
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2011-03-25 22:54:34 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-05-20 09:28:25 -0300
commit92f6ed71cafae8580bd481db66edb81c3d9d958c (patch)
tree50531239bb0fc3eaa5d0886518ae18e1315fe6da /drivers/media/video/pvrusb2
parent0cff593732fa5bdf07192be741a567b85a9c0cd3 (diff)
downloadkernel_goldelico_gta04-92f6ed71cafae8580bd481db66edb81c3d9d958c.zip
kernel_goldelico_gta04-92f6ed71cafae8580bd481db66edb81c3d9d958c.tar.gz
kernel_goldelico_gta04-92f6ed71cafae8580bd481db66edb81c3d9d958c.tar.bz2
[media] pvrusb2: delete generic_standards_cnt
The generic_standards_cnt define is only used in one place and it's more readable to just call ARRAY_SIZE(generic_standards) directly. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/pvrusb2')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-std.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-std.c b/drivers/media/video/pvrusb2/pvrusb2-std.c
index 35c8b40..453627b 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-std.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-std.c
@@ -278,12 +278,10 @@ static struct v4l2_standard generic_standards[] = {
}
};
-#define generic_standards_cnt ARRAY_SIZE(generic_standards)
-
static struct v4l2_standard *match_std(v4l2_std_id id)
{
unsigned int idx;
- for (idx = 0; idx < generic_standards_cnt; idx++) {
+ for (idx = 0; idx < ARRAY_SIZE(generic_standards); idx++) {
if (generic_standards[idx].id & id) {
return generic_standards + idx;
}