From patchwork Fri Jun 30 09:18:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 114637 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp10224257vqr; Fri, 30 Jun 2023 02:33:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlEJib/mZCsG7sArpz1zpnfKYD6T1nc+o8lxCYHPR47P0q2xo/4Tn5ua6j9PwQDFBZB60XsY X-Received: by 2002:a05:6e02:924:b0:345:8a74:761b with SMTP id o4-20020a056e02092400b003458a74761bmr2124043ilt.1.1688117585375; Fri, 30 Jun 2023 02:33:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688117585; cv=none; d=google.com; s=arc-20160816; b=wbpSDu4SS2thky078xDMBiQ0BZcX6xg3hZdafkUW+ci6d91ql1rODBrRYgcKkHIS7u U2So5t6zgEA01/a7P1ua5NNSvelRIzet18eoatAwTzFT/XTC3TseL033iIOTBZ2qsoFj swtYooJJEdWcWd73rIk8+5d0ukdyZKVIX9FlGlHF5bXvNWcgB2Lq3FlFzS6yzRc5vWFE +MQ1jae8nnW61anuqbtKKOzBQ2JGXCzrvv+iGHTe9s7M8exVifPiT+TsYBFJbE2uTmfE 6hLtgbN+9QoatzPlrwtNN/KiV4vITgOhj4Mt3l43nFbjhd98COWRl9Mgae5DKoCEAKii /uWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=odG3RuAEmIQUMBe5PO/6PQwaLkI3rJzneIanf6tBvlI=; fh=Ba2LtI+abH6wTj247MPHw4T86KQwWbboFwloehI4gO4=; b=zW3ZtxFeGX8E2Q/+LfiHHT4cLFcavqmItJ/XK4Wgf+zpxeTMoQVEI81c0aJNRKIuej C5WE8hyzzljcDhNsD7rdkgR8va9DVqUoyv9S8mxkpbgwjFtB2fHy9bEVk4CMlrcC/XZZ TWL0CPvlc1hIQifbj6PJ7H2NlIcU3RyriCdGreBzymIO1FHi9XLkMFyNIljuy+jkguUH gHFDDuZMLN3g9vSxa59lo1uYN8oabJw+3J4snxBpntEqzYlSp7HApbKo6MfTOVVfTzid IMqmLI2j3fzWL2TuIQM7kK6LPhNCBr7b2uUIIGj+pyVGmDUqsUbhAIadHMluBsZrpJwe EImA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=bwpX7JYS; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bg2-20020a17090b0d8200b002636a32aff2si1934680pjb.114.2023.06.30.02.32.52; Fri, 30 Jun 2023 02:33:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=bwpX7JYS; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232795AbjF3JSz (ORCPT + 99 others); Fri, 30 Jun 2023 05:18:55 -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 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769960073902169922?= X-GMAIL-MSGID: =?utf-8?q?1770119585077598647?= The following commit has been merged into the irq/urgent branch of tip: Commit-ID: 67a4e1a3bf7c68ed3fbefc4213648165d912cabb Gitweb: https://git.kernel.org/tip/67a4e1a3bf7c68ed3fbefc4213648165d912cabb 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@linux.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 fwnode_handle *fwnode, return NULL; } - strreplace(name, '/', ':'); - - domain->name = name; + domain->name = strreplace(name, '/', ':'); domain->fwnode = fwnode; domain->flags |= IRQ_DOMAIN_NAME_ALLOCATED; }