diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-04-14 10:24:15 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-04-14 10:24:15 -0300 |
commit | a08c04253d6c82aeed9b4aeb3037a01afc3e5687 (patch) | |
tree | 44f0afca6fa5cc4d00bc455f41c98dd505a0cd91 /linux/sound | |
parent | d6e9e2354396258d2a011ac9331472e705b87207 (diff) | |
download | mediapointer-dvb-s2-a08c04253d6c82aeed9b4aeb3037a01afc3e5687.tar.gz mediapointer-dvb-s2-a08c04253d6c82aeed9b4aeb3037a01afc3e5687.tar.bz2 |
Bt878: prevent probing wrong card entry
From: Akinobu Mita <akinobu.mita@gmail.com>
I got strange message when I did modprobe bt878:
bt878_probe: card id=[0x0],[ <NULL> ] has DVB functions.
The card_list array is terminated by sentinel entry.
But this list is traversed by:
for (i = 0, dvb_cards = card_list; i < ARRAY_SIZE(card_list);
i++, dvb_cards++) {
...
}
in bt878_probe().
So this loop checks dummy sentinel entry, too.
This patch removes unnecessary sentinel entry.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/sound')
0 files changed, 0 insertions, 0 deletions