summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2024-02-19 14:38:21 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2024-02-20 12:07:03 +0100
commit13509f24774cc16423fe15c7c9013fe9582fa2b3 (patch)
tree5470a07b6aa3c6f75464fe509226d4764835b83a
parent1d8515a0d3f78eae1891bf7ff3b662cb722d45a1 (diff)
downloadbarebox-13509f24774c.tar.gz
barebox-13509f24774c.tar.xz
usb: xhci: usb: xhci: avoid type conversion of void *
Original U-Boot commit 3fade88686e71c9acee4cbeb3ae9706bbc845608: | Author: Heinrich Schuchardt <xypron.glpk@gmx.de> | AuthorDate: Tue Sep 29 22:03:01 2020 +0200 | | usb: xhci: avoid type conversion of void * | | void * can be assigned to any pointer variable. Avoid | unnecessary conversions. | | Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> removes 8 such instances, of which only one remains in barebox. So remove that single remaining cast. No functional change. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20240219133835.3886399-2-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/usb/host/xhci-mem.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c
index f975b1c0a9..5ae1512af5 100644
--- a/drivers/usb/host/xhci-mem.c
+++ b/drivers/usb/host/xhci-mem.c
@@ -464,8 +464,7 @@ int xhci_alloc_virt_device(struct xhci_ctrl *ctrl, unsigned int slot_id)
return -EEXIST;
}
- ctrl->devs[slot_id] = (struct xhci_virt_device *)
- malloc(sizeof(struct xhci_virt_device));
+ ctrl->devs[slot_id] = malloc(sizeof(struct xhci_virt_device));
if (!ctrl->devs[slot_id]) {
dev_err(ctrl->dev, "Failed to allocate virtual device\n");