PCI: Speed up the Intel SMBus unhiding quirk
authorJean Delvare <khali@linux-fr.org>
Fri, 5 Jan 2007 10:23:15 +0000 (11:23 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 7 Feb 2007 23:50:06 +0000 (15:50 -0800)
commit2f2d39d2843570e81be6d53da6052f6752dc3c45
tree76b57ace5a843d2ed24dfab6297bbd6d6d8fb3f7
parent15a260d53f7ca026e45109d2c2bec8c4b087780b
PCI: Speed up the Intel SMBus unhiding quirk

Speed up the Intel SMBus PCI quirk by avoiding tests which can only
fail. This also makes the compiled code significantly smaller when
using gcc 3.2/3.4. gcc 4.x appears to optimize the code by itself so
this change doesn't make a difference there.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/quirks.c