aboutsummaryrefslogtreecommitdiff
path: root/include/hw/usb.h
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-12-16 18:23:26 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-01-13 17:07:00 +0100
commit8bf6275f7e08ed8fea309ecda29c5da8837ed952 (patch)
treefabedd2c12a50b00177fa7dfd76ad660aab77bae /include/hw/usb.h
parent901b78a0eeda7d8d955e9ffe6608801df14b5638 (diff)
downloadqemu-8bf6275f7e08ed8fea309ecda29c5da8837ed952.zip
qemu-8bf6275f7e08ed8fea309ecda29c5da8837ed952.tar.gz
qemu-8bf6275f7e08ed8fea309ecda29c5da8837ed952.tar.bz2
hw/usb: Inline usb_try_new()
Inline the single use of usb_try_new(). Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Message-Id: <20240216110313.17039-10-philmd@linaro.org>
Diffstat (limited to 'include/hw/usb.h')
-rw-r--r--include/hw/usb.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/hw/usb.h b/include/hw/usb.h
index d46d967..bb778cb 100644
--- a/include/hw/usb.h
+++ b/include/hw/usb.h
@@ -584,11 +584,6 @@ static inline USBDevice *usb_new(const char *name)
return USB_DEVICE(qdev_new(name));
}
-static inline USBDevice *usb_try_new(const char *name)
-{
- return USB_DEVICE(qdev_try_new(name));
-}
-
static inline bool usb_realize_and_unref(USBDevice *dev, USBBus *bus, Error **errp)
{
return qdev_realize_and_unref(&dev->qdev, &bus->qbus, errp);