From nobody Sun Feb 8 10:04:45 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4DD0EEB64D7 for ; Fri, 30 Jun 2023 09:19:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232808AbjF3JS6 (ORCPT ); Fri, 30 Jun 2023 05:18:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232760AbjF3JSd (ORCPT ); Fri, 30 Jun 2023 05:18:33 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C05A35AE; Fri, 30 Jun 2023 02:18:31 -0700 (PDT) Date: Fri, 30 Jun 2023 09:18:28 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1688116709; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=odG3RuAEmIQUMBe5PO/6PQwaLkI3rJzneIanf6tBvlI=; b=bwpX7JYSwrrNbUyjQzsoZcnIhRMULr1vKak/+/ieE6QHa/w/VdsRVYpDkjOKJaF6l7s5wD lOBZMGW4Wt+iSwxvgmFoX1QRH70uCO9X+IhD9XUtNJhy/QMc+S1QUP4GyyW6noU8wVkiON Bb99oTPaHcCvqq3dSfADDSVXoS4Z2e/O/9ZxPMnuI1UPfIgRnHjfLE5ZwgoEws2IfSAKUp f95761UAtPLIhsrs62wp/hTCOC0+U2ARx2kzOCkD+jwzGhmjD8O6if+B0a5iJxQa9egM8X 8p0pVZqIQLq15goECTjJU0+jYHb+rDWCK6NjZlSObG/eQIE2DqUYSHpPCQyXhw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1688116709; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=odG3RuAEmIQUMBe5PO/6PQwaLkI3rJzneIanf6tBvlI=; b=RzuVnTpjhNJcnw/CnaYGdFCl+2Uv/8WYKOXiFVyKZznic1dfgqknA91FlfJO6fXAcihvI5 WmrOTkyzMY6BuQDw== From: "tip-bot2 for Andy Shevchenko" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/urgent] irqdomain: Use return value of strreplace() Cc: Andy Shevchenko , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org, maz@kernel.org In-Reply-To: <20230628150251.17832-1-andriy.shevchenko@linux.intel.com> References: <20230628150251.17832-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Message-ID: <168811670871.404.17155644226213801452.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the irq/urgent branch of tip: Commit-ID: 67a4e1a3bf7c68ed3fbefc4213648165d912cabb Gitweb: https://git.kernel.org/tip/67a4e1a3bf7c68ed3fbefc4213648165d= 912cabb Author: Andy Shevchenko AuthorDate: Wed, 28 Jun 2023 18:02:51 +03:00 Committer: Thomas Gleixner CommitterDate: Fri, 30 Jun 2023 11:13:44 +02:00 irqdomain: Use return value of strreplace() Since strreplace() returns the pointer to the string itself, use it directly. Signed-off-by: Andy Shevchenko Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/20230628150251.17832-1-andriy.shevchenko@li= nux.intel.com --- kernel/irq/irqdomain.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c index 5bd0162..0bdef4f 100644 --- a/kernel/irq/irqdomain.c +++ b/kernel/irq/irqdomain.c @@ -182,9 +182,7 @@ static struct irq_domain *__irq_domain_create(struct fw= node_handle *fwnode, return NULL; } =20 - strreplace(name, '/', ':'); - - domain->name =3D name; + domain->name =3D strreplace(name, '/', ':'); domain->fwnode =3D fwnode; domain->flags |=3D IRQ_DOMAIN_NAME_ALLOCATED; }