浏览代码

[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>
Andrew Morton 18 年之前
父节点
当前提交
0153260a1e
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      drivers/ata/pata_cs5530.c

+ 2 - 1
drivers/ata/pata_cs5530.c

@@ -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);
 }