[libata] pata_artop: kill gcc warning
authorJeff Garzik <jeff@garzik.org>
Sun, 1 Oct 2006 14:38:22 +0000 (10:38 -0400)
committerJeff Garzik <jeff@garzik.org>
Sun, 1 Oct 2006 14:38:22 +0000 (10:38 -0400)
gcc complains thusly:

drivers/ata/pata_artop.c: In function ‘artop_init_one’:
drivers/ata/pata_artop.c:429: warning: ‘info’ may be used uninitialized in this function

While this warning is indeed bogus, even with improved static analysis
and value range propagation, gcc will probably never be able to detect
this.

Add a BUG_ON() to trap invalid driver_data entries in the PCI table.

Signed-off-by: Jeff Garzik <jeff@garzik.org>

No differences found