Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A5517C433E1 for ; Mon, 24 Aug 2020 07:52:00 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 71C55206F0 for ; Mon, 24 Aug 2020 07:52:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="QjBUAZ97" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 71C55206F0 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=qCPBtyYAE9qYq+qiQINSw3nlCvlCfFuqPE/uLNLPGxo=; b=QjBUAZ97ownH29U433zjjT2o0K emduyyIBOR8qVQ28kWfw5M8g79jgVLPa4eNJoM5IreRYssYBsHH+P/jYCkpTHZzAER913MZSLSw6t 4fEi0pfNaGOGS94wB3a5/N0LUE+7eu1c4wJzIkty1TMMWi3d3cPRorjVgT4cZrxxl1QR5eQQsjuCg 8xGBqkOmmSXO7y68fTsITuocPJC1l98jaiikGNMx7TjROiJDmWCb/V+a2lB0Wn6s9/J2ODRPj0229 lpb0aLqNUw53D1JSJQYCzqabNmKE5qCEykBjB0hEAX7yfr98hDb3B6CrG8o6qLGeNAFDUnAwEGkiD +t2zo6Wg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kA7Fb-0000cs-An; Mon, 24 Aug 2020 07:50:43 +0000 Received: from szxga04-in.huawei.com ([45.249.212.190] helo=huawei.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kA7FY-0000bu-GS for linux-arm-kernel@lists.infradead.org; Mon, 24 Aug 2020 07:50:41 +0000 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 913A3D276F3B3DDA6C65; Mon, 24 Aug 2020 15:50:35 +0800 (CST) Received: from huawei.com (10.175.127.227) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Mon, 24 Aug 2020 15:50:27 +0800 From: Ye Bin To: , , , Subject: [PATCH] irqchip/ti-sci-intr: Fix unsigned expression compared with zero in ti_sci_intr_alloc_parent_irq Date: Mon, 24 Aug 2020 15:50:10 +0800 Message-ID: <20200824075010.183174-1-yebin10@huawei.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 X-Originating-IP: [10.175.127.227] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200824_035041_298825_165B586C X-CRM114-Status: UNSURE ( 9.13 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ye Bin Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Signed-off-by: Ye Bin --- drivers/irqchip/irq-ti-sci-intr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-ti-sci-intr.c b/drivers/irqchip/irq-ti-sci-intr.c index cbc1758228d9..54077b66b2bd 100644 --- a/drivers/irqchip/irq-ti-sci-intr.c +++ b/drivers/irqchip/irq-ti-sci-intr.c @@ -144,10 +144,11 @@ static int ti_sci_intr_alloc_parent_irq(struct irq_domain *domain, if (out_irq == TI_SCI_RESOURCE_NULL) return -EINVAL; - p_hwirq = ti_sci_intr_xlate_irq(intr, out_irq); - if (p_hwirq < 0) + err = ti_sci_intr_xlate_irq(intr, out_irq); + if (err < 0) goto err_irqs; + p_hwirq = err; parent_node = of_irq_find_parent(dev_of_node(intr->dev)); fwspec.fwnode = of_node_to_fwnode(parent_node); -- 2.25.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel