From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 43D0938DC7D for ; Wed, 12 Aug 2026 04:29:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786508953; cv=none; b=EoGnlqDnTpqFLDOlD+mFP0ZAoq/OzD58Lz2HAOJMoxqHVk9YAjQ6lbFNPyRW8PVSsru3yPIymp22ZegNzjAszLzoJ3tpFPvqFaAbolQ+QJPJxNjiPwnmPDM+iWhMnxsEG75ZIaYQcJSrjVTl/xKHVn6jh5EH0upIpRGaRN7kqeQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786508953; c=relaxed/simple; bh=paXb7cPz84ak9iRT+469yi6R122BTm7k+86ToWnqgxg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tYKhmjYwc3RA2tBvW9zpm4QjEuOMNSLvIkWKOMHlGQv0szWWWThy5P+Gunmr8BO0rvSGVNR6hfxC7ny6hBxr6QCXgcc1WlSY1H66r6zz4wIQY+wJkNfrAAL0o8LmcPYs9JfrvwqEUMc5JnALzGJJhykOeDf0RfEEVc23cJ4+GZs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Ie0ZCCFt; arc=none smtp.client-ip=209.85.210.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Ie0ZCCFt" Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-84e507b079dso403429b3a.0 for ; Tue, 11 Aug 2026 21:29:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1786508951; x=1787113751; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=mEJkipxPnylT8R0BXRqJUwVdMYB2oKO4eJNrvtsOxzk=; b=Ie0ZCCFt+VnCwT40InHfJoVsc3OV6qbZeOA+1QCJsbaMvm+EoUOkFfktJI6EXnR7oU HqbjdyD2J6ZPydPUZ9CEdqX65dPKHhL5iPJCRjNkvIouxkUyYRjRDzC+qYkzPpRvLDND 6/XGKt6COCMWUvDp0RWft3IPn5xQE6EnMyJAJwhDd5P/yER0eb1gkLHV9eWuc5zpvu/+ xvlIu+jMxLOgsyfBRF0K6FU5VCUo9v5Tz4LfFgl6RbmioZzSVQaTnYj6QPUiGsC07Ggh wt9Gs8jFBrXfdzaiC7nPMfSP65y2n/Wxir9vwZimE97MM0Ff33LfaErJ/eIvOi41TroF +RXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786508951; x=1787113751; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=mEJkipxPnylT8R0BXRqJUwVdMYB2oKO4eJNrvtsOxzk=; b=BmjWPPsx+B6JoaGrYDZwnVSbz1VfQP1Ui+s9RY90+9fgoWI2RBeTi/skCnQZiqKrn5 q1f8bWCozAoHg5iWCzc7cbQZyPovsbS+FavTT8JnP8e80oSZcKBrllBIKhJxxPmN57ux DW6O1ao5oSIiT6dTi/posnvqgwpD93iv64t36XXgNYScbmbyrIVi3LanUIxQ8PXsX2kq 5EWfUZ9Ha9klDntAt9ql/uglDQBTDYqa4kbc0DWDVEGeTJuVucA7W7Q4EYLaqlq48ZJa NTb56CqJLPAd3uDXFcbOANihPRiJVK6QyW7Z+TGrknjjBSg4XzHBH2sxT7zyqv82ooh4 fxJA== X-Forwarded-Encrypted: i=1; AHgh+RrTWE6+G+V4Wmbue5GOj8yaTodJsRY/bWzGooVmHfuB4qNOWM2bcOntItAyFi/MT1AucfajHg8ZhC7N9ZM=@vger.kernel.org X-Gm-Message-State: AOJu0YwCY/t5uLXhzSAIGaDZas4g0QrJTR8oZhGxqI27DpI7xwjV1mSs hqYax6q7cWsuFL88IYYXHRucfJfGOQT8bD2LsiWTpCkAIat4COLms9aF X-Gm-Gg: AR+sD13Gbtuls5vPIKhnknoZEFktEg4t7NMQH4sjnI6Rqx4Du9WJ3/yXTROX0yg0SEp 96hbLBMmodgRrA6jJ3SBIzVl9oAiqjRR8BpAMsrDvE/WPe/1KvSAeEgm27ztAh4jDiE0QrwxYJb nqRRijt208gafPLf2ZTzxgqfSi4wZYJOgwPG6eDivp2C1dfYxvx3awJ2dIPjZLMD9ap/IHkis1D lHK7BrUh90v+R01u3nfWSVtcBckroIazD3z7shoZcIFT9WAM34BY/Rt3Y8Gw90rR9rxbMo0ueS7 S5jRuJLqEivG1mqjcbqzNpVWLBQXugaUko3cGd486WY/y7tFX9NJWmrs+8ejHqqWX7YS2QAmGEZ Uk5qVA9wBN5UmW7Z/1nT0x6MmG3nTdrHBvPlVUJND2OWPcN0spaIbXXKvUUU2oGZ38jwRV1tAct 7MS5uU6pIvRT1/ReNBns6P1ZeeRVF+0iAjcJtsEEryKnZFY/OLHNZ7JAUPdJnfTCMyAUFqzUK/7 fWe2ggGBjiJ7tAXedxoscUXBEuNmRQF4H2PeE1XGAM72OVipV0sovGFab3fT1qXsDZWzUz/RMBN tQIJlw== X-Received: by 2002:a05:6a00:e05:b0:84e:24f:2667 with SMTP id d2e1a72fcca58-84fb53c3629mr2470608b3a.8.1786508951128; Tue, 11 Aug 2026 21:29:11 -0700 (PDT) Received: from phuc-desktop.. ([183.91.15.56]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-84fb1cf41acsm476376b3a.11.2026.08.11.21.29.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Aug 2026 21:29:10 -0700 (PDT) From: phucduc.bui@gmail.com To: Andy Whitcroft , Joe Perches , rafael@kernel.org, Daniel Lezcano , Zhang Rui , Lukasz Luba , Greg Kroah-Hartman , Diogo Ivo , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Cc: bui duc phuc Subject: [PATCH 3/3] usb: phy: Remove redundant OOM message Date: Wed, 12 Aug 2026 11:28:41 +0700 Message-ID: <20260812042842.15209-3-phucduc.bui@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260812042842.15209-1-phucduc.bui@gmail.com> References: <20260812042842.15209-1-phucduc.bui@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: bui duc phuc 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 --- 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