die() does never return. Annotate it as such.
Any endless loop after die() can be eliminated. Dereferencing a NULL pointer is bad. die() instead. Replace endless loops with die(). Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4340 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@ -34,7 +34,6 @@ struct bus *get_pbus_smbus(device_t dev)
|
||||
if (!pbus || !pbus->dev || !pbus->dev->ops || !pbus->dev->ops->ops_smbus_bus) {
|
||||
printk_alert("%s Cannot find smbus bus operations", dev_path(dev));
|
||||
die("");
|
||||
for(;;);
|
||||
}
|
||||
return pbus;
|
||||
}
|
||||
|
Reference in New Issue
Block a user