Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1837226pxb; Wed, 9 Feb 2022 05:39:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJyE2qlqzmtMjcNMfYFVkzdJoB5V798R/5f3nPJbSCshYzyWY8+FXqnFz2y2eQFksOwgCCDH X-Received: by 2002:a17:902:74c3:: with SMTP id f3mr2083869plt.17.1644413975165; Wed, 09 Feb 2022 05:39:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644413975; cv=none; d=google.com; s=arc-20160816; b=pVP69FGqyC/9bWLDY0Z91MaTAoBvDX1SziyJrZQYs6/Qtxdf0TvXjE7ONf6hDXF7bF hCuWm9nE51g/xLr5xr5WZQ/iYRrXo5/a6l6G/UrcEBzVd+wyt6I4SN7hJ9J0lHctp9dG l71gEKRlexQ4Hk5xiJGYQ/M0PlvF2HKIC4apsRPrO2H9G+37yU1+flUOS91WoE5NMbgl Mk0M5LLf7W/bDWi2PDKuGCveDoF0e7XTspnYAJMvkz9DqmIEwW/h7ebPKPJy+Ok0Jk5v xepLRGC54WVmiYT8IRZDosUpfiKBXpQ8NWpDcafcBJrtGOEt7MsRgf8D6IwwRE4MKC6g z4CA== 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=Q3ANEml0Oaw5+xKyS73T6TTeVgOiQMPZMMni7FJGsydTmqdM3+gts/YmiSh6eXNlv/ vQMgT7sfl73dQV0ttMYcWFpTJymayLUN3efoje+ZWPSddyj1anCfyfBXi3XcPRrGxpBF 3/Cbk5DpksUXuH5cOMM64D5s9ukiV9f2C30HGqG+5USgmSe6BAKh1X2wDyVI9McsHVto jzuqLQrALRSGvHj2qLncvm2sF8yr1+sz1eM3kCCsfcfMougT85jq0w41AtKg0xRTTIRo Ofjo5rp75747zPoURDZL1Z9ba6L3mIyIooiXfPaHXQA2NnJ/+FmOdBP0LL9TQDSLa4V9 mO9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pPbmIcCc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y5si438309pfy.57.2022.02.09.05.39.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 05:39:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pPbmIcCc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9207BE13A320; Wed, 9 Feb 2022 02:22:21 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1390677AbiBGL5Y (ORCPT + 99 others); Mon, 7 Feb 2022 06:57:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1385251AbiBGLb0 (ORCPT ); Mon, 7 Feb 2022 06:31:26 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83201C02B649; Mon, 7 Feb 2022 03:29:53 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 1F22260A67; Mon, 7 Feb 2022 11:29:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CBD6BC004E1; Mon, 7 Feb 2022 11:29:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1644233392; bh=/caNl0v9RwhFS+XEpOgKYAUioaM4gZ0FnbqNGD2i7JI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pPbmIcCckoN5STM/q3ddYOROfNOZ+9d9id1UgT6OJpxgItbmHInde+q2uaIJPDdGy MLENk41JJy/ME0ghQU8qxrxe3B8jgExgRfO2C3H2fl3cOaAHnKU5Ue/vdJNmNYisTb We1u/mMJ+GD96We+qi1ku3jLEOmwvthrvXF3q4P4= 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.15 108/110] gpio: mpc8xxx: Fix an ignored error return from platform_get_irq() Date: Mon, 7 Feb 2022 12:07:21 +0100 Message-Id: <20220207103806.050063963@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220207103802.280120990@linuxfoundation.org> References: <20220207103802.280120990@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=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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; }; /*