From 2e768e7f171514924c3b206b7f3fbe6bf20c1c71 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Fri, 4 Nov 2011 11:50:03 +0100 Subject: libpayload: Drop usb_fatal() We have fatal(), which is just as good. Coccinelle script: @@ expression E; @@ -usb_fatal(E) +fatal(E) Change-Id: Iabecbcc7d068cc0f82687bf51d89c2626642cd86 Signed-off-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/395 Reviewed-by: Stefan Reinauer Tested-by: build bot (Jenkins) --- payloads/libpayload/drivers/usb/usbhub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'payloads/libpayload/drivers/usb/usbhub.c') diff --git a/payloads/libpayload/drivers/usb/usbhub.c b/payloads/libpayload/drivers/usb/usbhub.c index fcf4f36d5f..08042a2b9f 100644 --- a/payloads/libpayload/drivers/usb/usbhub.c +++ b/payloads/libpayload/drivers/usb/usbhub.c @@ -135,7 +135,7 @@ usb_hub_init (usbdev_t *dev) dev->data = malloc (sizeof (usbhub_inst_t)); if (!dev->data) - usb_fatal("Not enough memory for USB hub.\n"); + fatal("Not enough memory for USB hub.\n"); HUB_INST (dev)->descriptor = (hub_descriptor_t *) get_descriptor(dev, gen_bmRequestType(device_to_host, class_type, dev_recp), 0x29, 0, 0); @@ -143,7 +143,7 @@ usb_hub_init (usbdev_t *dev) HUB_INST (dev)->ports = malloc (sizeof (int) * (HUB_INST (dev)->num_ports + 1)); if (! HUB_INST (dev)->ports) - usb_fatal("Not enough memory for USB hub ports.\n"); + fatal("Not enough memory for USB hub ports.\n"); for (i = 1; i <= HUB_INST (dev)->num_ports; i++) HUB_INST (dev)->ports[i] = -1; -- cgit v1.2.3