1
0
Fork 0

[libata] pata_cs5530: suspend/resume support tweak

side-effectful-expression-within-assert give me the creeps.

Cc: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
hifive-unleashed-5.1
Andrew Morton 2006-12-20 13:03:11 -05:00 committed by Jeff Garzik
parent f238085415
commit 0153260a1e
1 changed files with 2 additions and 1 deletions

View File

@ -372,7 +372,8 @@ static int cs5530_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
static int cs5530_reinit_one(struct pci_dev *pdev)
{
/* If we fail on resume we are doomed */
BUG_ON(cs5530_init_chip());
if (cs5530_init_chip())
BUG();
return ata_pci_device_resume(pdev);
}