From: Akinobu Mita Date: Sat, 14 Apr 2007 13:24:15 +0000 (-0300) Subject: V4L/DVB (5513): Bt878: prevent probing wrong card entry X-Git-Tag: v2.6.22-rc1~1118^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66ab6e023ebbb362b7cf42c8f56cc54a85fb7bb0;p=pandora-kernel.git V4L/DVB (5513): Bt878: prevent probing wrong card entry I got strange message when I did modprobe bt878: bt878_probe: card id=[0x0],[ ] 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 Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed