From 7141226e2f6aa7811f76b5fa3f830784d53b9043 Mon Sep 17 00:00:00 2001 From: Michael Hunold Date: Mon, 25 Oct 2004 18:53:32 +0000 Subject: - remove unnecessary type case - use ARRAY_SIZE() macro Thanks to Philipp Matthias Hahn --- linux/drivers/media/dvb/ttpci/av7110.c | 2 +- linux/drivers/media/dvb/ttpci/av7110_v4l.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'linux/drivers/media/dvb') diff --git a/linux/drivers/media/dvb/ttpci/av7110.c b/linux/drivers/media/dvb/ttpci/av7110.c index d0fb0c602..13cd71006 100644 --- a/linux/drivers/media/dvb/ttpci/av7110.c +++ b/linux/drivers/media/dvb/ttpci/av7110.c @@ -1445,7 +1445,7 @@ static int av7110_attach(struct saa7146_dev* dev, struct saa7146_pci_extension_d memset(av7110, 0, sizeof(struct av7110)); av7110->card_name = (char*) pci_ext->ext_priv; - av7110->dev = (struct saa7146_dev *) dev; + av7110->dev = dev; dev->ext_priv = av7110; if ((ret = get_firmware(av7110))) { diff --git a/linux/drivers/media/dvb/ttpci/av7110_v4l.c b/linux/drivers/media/dvb/ttpci/av7110_v4l.c index 184205c49..0ad065e8a 100644 --- a/linux/drivers/media/dvb/ttpci/av7110_v4l.c +++ b/linux/drivers/media/dvb/ttpci/av7110_v4l.c @@ -682,7 +682,7 @@ static struct saa7146_ext_vv av7110_vv_data_st = { .flags = 0, .stds = &standard[0], - .num_stds = sizeof(standard) / sizeof(struct saa7146_standard), + .num_stds = ARRAY_SIZE(standard), .std_callback = &std_callback, .ioctls = &ioctls[0], @@ -696,7 +696,7 @@ static struct saa7146_ext_vv av7110_vv_data_c = { .flags = SAA7146_USE_PORT_B_FOR_VBI, .stds = &standard[0], - .num_stds = sizeof(standard) / sizeof(struct saa7146_standard), + .num_stds = ARRAY_SIZE(standard), .std_callback = &std_callback, .ioctls = &ioctls[0], -- cgit v1.2.3