From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (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 AEE12382371 for ; Wed, 8 Apr 2026 12:02:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775649751; cv=none; b=L05ukGrNcyFh7pD6KKdlH1w/UkGk9s42JHkoI6Vl5tgftgWYHdwXS/R2mIbpgdxq8SWbgtd9QGPBZORr7YSVEjWTmX1nMWTYd10fc5sOEEdagtEum0lHP1wMQW7gp1gT1PVQTrBT0xKKuP4MWHwRyAtVGJBMCW9hRdJZjDnsg1Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775649751; c=relaxed/simple; bh=xMbK7T6KWi0V+gO4vzEsqrXXTtPwjXs8fCxY/s3y6qM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QG8qXOEsDJj2wJNxDjDuOfd1xxKpKkAYHdKvHr6X8Ocv5ykNKzYs9L6EquLa7tWBuCORRGsCOQ1zHR6Oi0/am7jOPSfYuL3Ux62wY3ZddT9ngvJ4H3DdZSXLNbMOuR4dYNoN2xma7E6I4yYFeAq3wcreThuvwphfp/+z7E4Etz8= 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=pA15+2TK; arc=none smtp.client-ip=209.85.210.176 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="pA15+2TK" Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-82cd6614a90so2723252b3a.3 for ; Wed, 08 Apr 2026 05:02:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775649750; x=1776254550; 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; bh=Q3dbB2q+3EGiEdHuQW3UFthejsHpGEStr/Ch17qN9iY=; b=pA15+2TKSN2luHw7vo6dQLaUtbl+B4uwjfm9VbbqhSDyuDyMTU23PhXuG/8nAOL18C VeOysNSbt1vCdsW1YbRGFNeSiNIMF89NPihQsuV2oNrHkixfwBgOvSK3h3tLQVXNPLF1 l2/mz4BGuK+UHaTHd+LIpeBMZqxkhZYvJAY4qlzV2xCob8T5NhcYm6QNAW5F3rMgwj+p Utc7+BbUVpQqeIei/XweC8trlLcS8WYFOytvVZO/m+/l9RyT94hbgoQqIBK5chNcemL5 Gh1r8145UDA3CjUrU7kTQS7iRPWsNjrxsmloprGHD8ie2N/8b/6xq8um4hSxnrHQ+5Gn 7bEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775649750; x=1776254550; 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; bh=Q3dbB2q+3EGiEdHuQW3UFthejsHpGEStr/Ch17qN9iY=; b=jjrvu9aTWQ1uTEdwx98XeSxD49+R5Cpj1FLuxCqsSwo6JGC8387s9n1v/RSY4Bx4YL SlLSa1lprzXCxSgz3I5QISR/mCWWh19o6EwP/WsFWo6W/CfFDC35FSIFAswxTbnamvBp O4PdPAWgi3Cfv2oZxKeQdvfeHt3E+gbUbSxWp/tWSlH4HyLrdXhZTAZGJrt35nMqXPay POXhO01MVjRwfU5cxslDROTCD50tcJacNVQ8esTqVwaYbxxWMcshGuBxnSEIrpQZ0fUj 7mNu+SgVRJjw2787wj2EEMzarhTQb7dUmWzy6zsigzH/sabgkEmtfIO7kR/uYNFU0xUI lwaQ== X-Forwarded-Encrypted: i=1; AJvYcCUy6+vyA0vmv9QQx0w1KHDFSi35fumgBa/eWunZSpBeQlnnjmIDLhCRz3epLASgpWV0ExwXoGzmyAqCoaw=@vger.kernel.org X-Gm-Message-State: AOJu0YzJeoPtZbRQd5f982vHU51MhhcHPSbELiN4U0jsloqOacSUPVDT xsTRvLFll4C8G0Q3Sw440AJwqTTrc4BIwBk7hpcr4440+SG4g3MWfYwv X-Gm-Gg: AeBDiev/EBoaU81AovzFoiWrqI1hmhtLI6IQLW+snLRt3iO7OLoM94iRpsncvGD6kD1 Uodb8PWUwl6q9NfXjBTOI4TU/5a+OY4TeOBFaEIYp372+EFhwiSHgi3nSpQSEG9WhAHKFdC9fzX 8aDynIHjedYeQFBjEbV4hYSS0w5tR6KVBYl4wiIrdKFfM7KPlkE/kr8fpnJfq7UWf2HrrPyjKSH SFXb/n3r7gidBW6Iv5x8PzmvGL+9y1KJYi5v0L6uRLG2pPbDWpTdSFWPdaNi912ZdXY42K3MWyn c4tyc3P30RZ2StRnLvdPcAWGGhi9itTO4qCmPF8K29og4UQNN3LQbvnxy42mVGS9BmIJUlqOMSH BMkYFh5m4GfgkyzWIq2Wyr92cSz5DaJsPs9DViuFwLhGRrUb5FZ9Wg9rjuigUxLbNR6Rbyy7dvp IunXp2UgovCUsfaL2x//BafkrJzFACLCsqQv9099Va1tSW X-Received: by 2002:a05:6a00:1405:b0:82c:2480:4e3d with SMTP id d2e1a72fcca58-82d0da44765mr19104719b3a.9.1775649750053; Wed, 08 Apr 2026 05:02:30 -0700 (PDT) Received: from Mac.localdomain ([49.205.216.49]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-82cf9b3e169sm21209322b3a.18.2026.04.08.05.02.26 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 08 Apr 2026 05:02:29 -0700 (PDT) From: "Ritesh Harjani (IBM)" To: linuxppc-dev@lists.ozlabs.org, Haren Myneni Cc: Madhavan Srinivasan , Christophe Leroy , Venkat Rao Bagalkote , Nicholas Piggin , linux-kernel@vger.kernel.org, "Ritesh Harjani (IBM)" Subject: [RFC v2 09/10] pseries/papr-hvpipe: Fix style and checkpatch issues in enable_hvpipe_IRQ() Date: Wed, 8 Apr 2026 17:31:39 +0530 Message-ID: <8e9de6c5a96b66f4ee8ed6801684ae0222dc6752.1775648406.git.ritesh.list@gmail.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit While at it let's also fix the similar style issue in enable_hvpipe_IRQ() function. This also fixes a minor checkpatch warning which I got due to an extra space before " ==". Signed-off-by: Ritesh Harjani (IBM) --- arch/powerpc/platforms/pseries/papr-hvpipe.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/arch/powerpc/platforms/pseries/papr-hvpipe.c b/arch/powerpc/platforms/pseries/papr-hvpipe.c index 5d04d1fa4370..c708869ca732 100644 --- a/arch/powerpc/platforms/pseries/papr-hvpipe.c +++ b/arch/powerpc/platforms/pseries/papr-hvpipe.c @@ -693,20 +693,19 @@ static int __init enable_hvpipe_IRQ(void) struct device_node *np; hvpipe_check_exception_token = rtas_function_token(RTAS_FN_CHECK_EXCEPTION); - if (hvpipe_check_exception_token == RTAS_UNKNOWN_SERVICE) + if (hvpipe_check_exception_token == RTAS_UNKNOWN_SERVICE) return -ENODEV; /* hvpipe events */ np = of_find_node_by_path("/event-sources/ibm,hvpipe-msg-events"); - if (np != NULL) { - request_event_sources_irqs(np, hvpipe_event_interrupt, - "HPIPE_EVENT"); - of_node_put(np); - } else { - pr_err("Can not enable hvpipe event IRQ\n"); + if (!np) { + pr_err("No device node found, could not enable hvpipe event IRQ\n"); return -ENODEV; } + request_event_sources_irqs(np, hvpipe_event_interrupt, "HPIPE_EVENT"); + of_node_put(np); + return 0; } -- 2.39.5