Commit 8f4fe785 authored by Rolf Eike Beer's avatar Rolf Eike Beer Committed by Deepak Saxena

[PATCH] ACPI PCI Hotplug: add a BUG() where one should be

If there is a condition with the comment "should never happen" it is a good
place for a BUG() if it is ever reached.
parent 852ca616
......@@ -1180,7 +1180,8 @@ struct acpiphp_slot *get_slot_from_id(int id)
}
/* should never happen! */
err("%s: no object for id %d\n",__FUNCTION__, id);
err("%s: no object for id %d\n", __FUNCTION__, id);
WARN_ON(1);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment