Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1587701pxb; Tue, 8 Feb 2022 23:15:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJyva89d3FjQ4XBN91cHMRz8tZ3iNyyOC/foyAn83FrHyDRSOJGWNzE0SQwXWCLabayGP7sa X-Received: by 2002:a17:90a:348e:: with SMTP id p14mr1057315pjb.71.1644390909184; Tue, 08 Feb 2022 23:15:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644390909; cv=none; d=google.com; s=arc-20160816; b=l3Bra2Psf76hz6EajfTmWlw7I//xwmgoIefh3hDOtkBl0Ob8WJbrzVf819apaPSL7Y pZubQq8Y9QTw1+ijXUAeROPU6Fl5g7MT38WedXFuPPEkYSZNGQ9EdgJIhp6+flkDDhN2 9CC/iYXZA6FE5rM9WG0sZKdXUTM2bxOjh3NCp0W5MY+aeK348cqDOKcUDFL5+qCZvngy Z2+Ni+5t+a/9qzQ5j2a1giFdAw5eOHMsEXZ1VfofV3BLsjXYurqd1P3Hxe38ye/5vTdK zZvivB8Ca1Uxh1E4OHm42Vpcgdp8HRTXpVIXPhE6kpSjZUV85JmdS4AAjYan8ktsuY0F 4vnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=/+gL+eCE7PUUl33wOyOHyd5HAXiRAHJqb516d5KyFGA=; b=mYQwwuimroaDYrrHwIHi2VB/sLIcDVuFV944ZW2DGAVqlvR/62NR7fbgL0pKuTjdCz /I9si3aVYxQMRnkQVIb7pXIpvx+5vwl6DPq+ecEo8aDiNvD5sLH+80qCTssC87T09OKx eFfMrsw6hpVV309sYWY6I4S2r4eRb74+0ItjrkcNYWatY8fjjsnE6PIBxYmQgabeY918 Z9u5oftmNlmjeaBCVJKDC1bgi0Hy96FGcTVozz4+0l1cCR5NQU5uWqX8rlIiL7V4qYMr QDsbi/NcCr2ccaaKC6lIoit21J+Fk1iBQvZ9yDkD8YFtyaHMx4hXVVXIThJQ4H/6MdM8 7lkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0oe2GnF8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u7si16608762pfk.123.2022.02.08.23.14.55; Tue, 08 Feb 2022 23:15:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0oe2GnF8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1391569AbiBGMCR (ORCPT + 99 others); Mon, 7 Feb 2022 07:02:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1386801AbiBGLhT (ORCPT ); Mon, 7 Feb 2022 06:37:19 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB99FC043181; Mon, 7 Feb 2022 03:37:18 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 9683AB8112C; Mon, 7 Feb 2022 11:37:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFACBC004E1; Mon, 7 Feb 2022 11:37:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1644233836; bh=/caNl0v9RwhFS+XEpOgKYAUioaM4gZ0FnbqNGD2i7JI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0oe2GnF8jeJNv+Gvf67AU8NwenlZoN6gBWltIkiSIhenb9DSbEKVNykFG4tFpyADA 6ckzE2g4TdEEKHTa2iQLituZYnndmEtTI974HrE+iHsPX1iuhPuTlMBuGMaOi79XW/ uMTJa7TGZLsipOwDSveMdsOZN0k00ZhRRrXXOTWA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Abaci Robot , Yang Li , Bartosz Golaszewski Subject: [PATCH 5.16 124/126] gpio: mpc8xxx: Fix an ignored error return from platform_get_irq() Date: Mon, 7 Feb 2022 12:07:35 +0100 Message-Id: <20220207103808.328037387@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220207103804.053675072@linuxfoundation.org> References: <20220207103804.053675072@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Yang Li commit 9f51ce0b9e73f83bab2442b36d5e247a81bd3401 upstream. The return from the call to platform_get_irq() is int, it can be a negative error code, however this is being assigned to an unsigned int variable 'irqn', so making 'irqn' an int. Eliminate the following coccicheck warning: ./drivers/gpio/gpio-mpc8xxx.c:391:5-21: WARNING: Unsigned expression compared with zero: mpc8xxx_gc -> irqn < 0 Reported-by: Abaci Robot Fixes: 0b39536cc699 ("gpio: mpc8xxx: Fix IRQ check in mpc8xxx_probe") Signed-off-by: Yang Li Signed-off-by: Bartosz Golaszewski Signed-off-by: Greg Kroah-Hartman --- drivers/gpio/gpio-mpc8xxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpio/gpio-mpc8xxx.c +++ b/drivers/gpio/gpio-mpc8xxx.c @@ -47,7 +47,7 @@ struct mpc8xxx_gpio_chip { unsigned offset, int value); struct irq_domain *irq; - unsigned int irqn; + int irqn; }; /*