]> err.no Git - linux-2.6/commit
[PATCH] pci: cleanup need_restore switch statement
authorJohn W. Linville <linville@tuxdriver.com>
Wed, 28 Sep 2005 21:50:51 +0000 (17:50 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 28 Oct 2005 22:36:58 +0000 (15:36 -0700)
commitd3535fbbce0eef8faa8de30d187fc83b11b858ef
treee0bad970776d58a8a79bfeb12d310acabe05aa61
parentb30197d2c07b396907b81673354a015a9d2b216c
[PATCH] pci: cleanup need_restore switch statement

Cleanup the need_restore switch statement in
pci_set_power_state(). This makes it more safe by explicitly handling
all the PCI power states instead of handling them as the default
case. It also reads a little better IMHO.

Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/pci.c