Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp863811pxb; Fri, 21 Jan 2022 05:11:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWIVpD1r9S8V+0WSi2JpwkSjL1UAsc7Q5wMcGtFfgEMYMGAyfQ8aL69Vh8HTAcxOY3RlbO X-Received: by 2002:a17:903:1110:b0:149:a428:19f1 with SMTP id n16-20020a170903111000b00149a42819f1mr4057953plh.120.1642770661115; Fri, 21 Jan 2022 05:11:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642770661; cv=none; d=google.com; s=arc-20160816; b=V4rqi7ghwyHngCju6Z/Z/4vnsT7JETm1nLN5mapMeY/Vwwsk999P66HOntGyt0cOY2 VN7O/cAI4jxO26WocuCoqdIPjmRn0/j2UMiR8sYa2LJ9tzUqTD4a7mMXh0eW/ZtOnYrw ICqwAvZfbiCAB37uy4yXRI9si7zYnFepJVljbuZmDh+B9ueND3OZsVrgb446xEmVYAvT lcWizOOprtaAefLJ2o+k1p/t4+5R8yHoZdj/ptI4oXH9e7Sk689gUI8bcD+Ubxu/xxGf P9qFgZ4vXBFYxodQoRyMgKdzGcuG6O6mwYyEvQ45iAq1zfdywUfStNdDm6HQv2mJkve+ vshQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=CyYXRpDUs7IbxowKExLqhMDD/XCo4DoaXYr15PTe4ug=; b=VxoSZObXg9pbIOrd+mUO8y9QFc+Ny4hEqwuF4yBvxM/f53Yq8AJWt88L7kVOPmTBfS RhHJ2BVELgIqW4v0pb6M3rSEcMxwmSd0cKi60xIioyVLTJXf4XtmsS4DyLofM7HyPR4e c1uTD+SDcmHhQvlg18yGz/9l/ooWsJmXsHtWLwIFJMbHiVcSGwJ3B7ezF4H5ncxiMjjq SrAsbs/qn7GVGKHcwuYS1vi/YsdqGeDrAW1WEV83uDrU22Dzykgi8n9+w2j1Cp0OiVRt /Rl2+UTCPHt7zOzTmfYwfMuOupspYW4gWQiWzDB51o/TyuWLH2fdIjElotW2a9xQMmIv cxww== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y25si7409560pfa.360.2022.01.21.05.10.49; Fri, 21 Jan 2022 05:11:01 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350574AbiASBEs (ORCPT + 99 others); Tue, 18 Jan 2022 20:04:48 -0500 Received: from out30-57.freemail.mail.aliyun.com ([115.124.30.57]:52095 "EHLO out30-57.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350559AbiASBEk (ORCPT ); Tue, 18 Jan 2022 20:04:40 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R911e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0V2EErm._1642554277; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0V2EErm._1642554277) by smtp.aliyun-inc.com(127.0.0.1); Wed, 19 Jan 2022 09:04:37 +0800 From: Yang Li To: linus.walleij@linaro.org Cc: brgl@bgdev.pl, linmq006@gmail.com, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next 2/2] gpio: mpc8xxx: Fix an ignored error return from platform_get_irq() Date: Wed, 19 Jan 2022 09:04:32 +0800 Message-Id: <20220119010432.65493-2-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c In-Reply-To: <20220119010432.65493-1-yang.lee@linux.alibaba.com> References: <20220119010432.65493-1-yang.lee@linux.alibaba.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/gpio/gpio-mpc8xxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-mpc8xxx.c b/drivers/gpio/gpio-mpc8xxx.c index 01634c8d27b3..a964e25ea620 100644 --- 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; }; /* -- 2.20.1.7.g153144c