diff options
author | Michael Hunold <devnull@localhost> | 2004-10-25 18:53:32 +0000 |
---|---|---|
committer | Michael Hunold <devnull@localhost> | 2004-10-25 18:53:32 +0000 |
commit | 7141226e2f6aa7811f76b5fa3f830784d53b9043 (patch) | |
tree | be5d45ecb16d1985282acf7fa8f716897dc2e572 | |
parent | 413458cbd323574f947dd84d8a0183fbe63ac412 (diff) | |
download | mediapointer-dvb-s2-7141226e2f6aa7811f76b5fa3f830784d53b9043.tar.gz mediapointer-dvb-s2-7141226e2f6aa7811f76b5fa3f830784d53b9043.tar.bz2 |
- remove unnecessary type case
- use ARRAY_SIZE() macro
Thanks to Philipp Matthias Hahn <pmhahn@titan.lahn.de>
-rw-r--r-- | linux/drivers/media/dvb/ttpci/av7110.c | 2 | ||||
-rw-r--r-- | linux/drivers/media/dvb/ttpci/av7110_v4l.c | 4 |
2 files changed, 3 insertions, 3 deletions
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], |