Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0153260a authored by Andrew Morton's avatar Andrew Morton Committed by Jeff Garzik
Browse files

[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: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent f2380854
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -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)
static int cs5530_reinit_one(struct pci_dev *pdev)
{
{
	/* If we fail on resume we are doomed */
	/* If we fail on resume we are doomed */
	BUG_ON(cs5530_init_chip());
	if (cs5530_init_chip())
		BUG();
	return ata_pci_device_resume(pdev);
	return ata_pci_device_resume(pdev);
}
}