Skip to content

Commit

Permalink
[libata] pata_cs5530: suspend/resume support tweak
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Morton authored and Jeff Garzik committed Dec 20, 2006
1 parent f238085 commit 0153260
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/ata/pata_cs5530.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 0153260

Please sign in to comment.