[PATCH 3/3] usb: phy: Remove redundant OOM message
From: phucduc . bui
Date: Wed Aug 12 2026 - 00:29:18 EST
From: bui duc phuc <phucduc.bui@xxxxxxxxx>
Remove the dev_dbg() after a failed devres_alloc(). This is
consistent with checkpatch's OOM_MESSAGE convention: no error
message is needed after a kzalloc()-style allocation failure.
Signed-off-by: bui duc phuc <phucduc.bui@xxxxxxxxx>
---
drivers/usb/phy/phy.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/usb/phy/phy.c b/drivers/usb/phy/phy.c
index 5a9b9353f343..117a33fa9e91 100644
--- a/drivers/usb/phy/phy.c
+++ b/drivers/usb/phy/phy.c
@@ -534,10 +534,8 @@ struct usb_phy *devm_usb_get_phy_by_node(struct device *dev,
unsigned long flags;
ptr = devres_alloc(devm_usb_phy_release2, sizeof(*ptr), GFP_KERNEL);
- if (!ptr) {
- dev_dbg(dev, "failed to allocate memory for devres\n");
+ if (!ptr)
goto err0;
- }
spin_lock_irqsave(&phy_lock, flags);
--
2.43.0