Received: by 10.223.164.202 with SMTP id h10csp1219082wrb; Fri, 17 Nov 2017 16:29:40 -0800 (PST) X-Google-Smtp-Source: AGs4zMYsbqbhMBeR6i3/usTnqJB+LzTijTYUbRn18ETLwWEKucQ3QJY687hzkEPKWImQQXetxsyI X-Received: by 10.99.183.6 with SMTP id t6mr6247669pgf.128.1510964980087; Fri, 17 Nov 2017 16:29:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510964980; cv=none; d=google.com; s=arc-20160816; b=U+GC6LdfuIQSDFQxTkwGwjgpapnu7wJgviQFR6Ig3+a/pWuXVXZRluvgdiv2Ug5avA QLzRO3RBiaTAW0dTHdUDSgDo90HaK2kHLA/m1/Td2t6V7y5FGfMGW7AuPoxYTHV3KatG +lu4d4SPzk6dn7qZ1BjVEDKqmt/TZGyRgVY9d8cdPDpNUTcAghHWQ/H1MLVD4F2E2lkG 0z3RPE+czyMcmMeDV3gAbdRzSUPalVB7wiMYiIdHAI+zgpvyxVVJiCM4aeZVU31xsRyA MfvC1csMw7DWXhMFsGtOglxkjG1qUZ8R9sd7qx0Sh3jfwm4sOKNR/1L4h4XUjSK9riUG oKcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=x21Um9Xe3H0puTxTHmhR5WXgEYtSqq/fk1kQkQHtmAs=; b=JU/oxfhuX8sroWcm6lDOBkyoclgEMrXCQuV3BfV9j15HFZ3pO7fRmwmlQhZUQVEgJj nmBY/034UqC1o4TGb7MriKK3FNnZSvUF4yOjFd0qk/LhvQbMOgNp0vq8mpJLN5ERqriZ NXENOu0fV6awcQ4NPMxwtHTmuD6WxCRTXAocJlnY8DUT3mVmQtUO1B3buX1K35VFyke1 sYbqdar1HmPqUYk+MAUCKpF3eYL/TfthnNQNydqWA4W6HrPI/QxXJnvwbQ53s7AE6It/ d3OxkoR2IOT+UQfwoFdFgjYFpYAhUwDqLKpGS4ctJWE0cfu6McILvviHgFWijPYD9HMW FokA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=J1LdN1bK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e10si3546389pgc.554.2017.11.17.16.29.27; Fri, 17 Nov 2017 16:29:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=J1LdN1bK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966363AbdKQTTG (ORCPT + 93 others); Fri, 17 Nov 2017 14:19:06 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:34665 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935523AbdKQTP7 (ORCPT ); Fri, 17 Nov 2017 14:15:59 -0500 Received: by mail-pf0-f194.google.com with SMTP id x7so2608714pfa.1; Fri, 17 Nov 2017 11:15:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=x21Um9Xe3H0puTxTHmhR5WXgEYtSqq/fk1kQkQHtmAs=; b=J1LdN1bKtu+LRrRnofL/rXrk0HYX+LMot6S2LdSpconnAvUbQg36/VOIDOb6Fb5702 x/qKJW6SAbSmMqdlUFTft+oqR99RrMPpBqocSoE743oGSQ6ksPA91PuR6UCmZT+zRotc jGT/iZl9V+GFQQ7GV4v6Je0FALwY1sHnM4gSoZt9/h6WjIuYtTmMtlx65aF5zZhMNVtI Zy2jALSwX7vks0tB4Bt0K2QTqLpGEwWkXTUcAQ7gjM4DfVVvFhX0h5+8UCD8y8AqigAW WHt3o30FzZKvWnjUIEUTsP4u45zX3ysqMsZlyByumLpsRpgztDS/Xiw/g1/e+i2zvbCQ UJ4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=x21Um9Xe3H0puTxTHmhR5WXgEYtSqq/fk1kQkQHtmAs=; b=j0NMEAn0iQVwkf1A12ojbiQCJliLbDfbwF0ck733h91EqccWWDF1ZOiuDeSgDkDOYZ 7EUldKbJzRRttSBUVPNnResxgA6o3C/Li/BLBDqB4YMAwnNizxOINYXu84M85mMDE+q4 k6mbIrKtBeGURKdA0wtBo85n7Gt4O/DQC4bD2Jmw2YFU1cpLwVKkZ+AX+4EgNZBg9Jxo AqRikRDK/RNXfo9DCMroFsCvJq7NiW/9tUfAoXkfYhHenYBaLN/zF579djY6rLKerLBD 4XoG/gycW8Or2cNLBEayqK2Fcpi2PgSDfnsquXtbykwYJmIzvPrPVNTtZM8qp1gjUZWo ST0A== X-Gm-Message-State: AJaThX7gfsmn2TiKuv7LLOn2vD1gyWKgycFk2htE/TO1yrktxdeZvlGF kDCprfrqnvCIwVhxdW2I8Gk= X-Received: by 10.99.113.83 with SMTP id b19mr5974646pgn.41.1510946159275; Fri, 17 Nov 2017 11:15:59 -0800 (PST) Received: from localhost.localdomain ([103.16.68.147]) by smtp.gmail.com with ESMTPSA id u188sm7807441pfb.188.2017.11.17.11.15.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 17 Nov 2017 11:15:58 -0800 (PST) From: Arvind Yadav To: dmitry.torokhov@gmail.com, maxime.ripard@free-electrons.com, wens@csie.org, linux@roeck-us.net, wsa@the-dreams.de, daniel.thompson@linaro.org, mcuos.com@gmail.com Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 01/10] Input: ep93xx_keypad: Fix platform_get_irq's error checking Date: Sat, 18 Nov 2017 00:45:23 +0530 Message-Id: <1510946132-13554-2-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510946132-13554-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1510946132-13554-1-git-send-email-arvind.yadav.cs@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The platform_get_irq() function returns negative if an error occurs. zero or positive number on success. platform_get_irq() error checking for zero is not correct. Signed-off-by: Arvind Yadav --- drivers/input/keyboard/ep93xx_keypad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/keyboard/ep93xx_keypad.c b/drivers/input/keyboard/ep93xx_keypad.c index f77b295..67efdc9 100644 --- a/drivers/input/keyboard/ep93xx_keypad.c +++ b/drivers/input/keyboard/ep93xx_keypad.c @@ -257,7 +257,7 @@ static int ep93xx_keypad_probe(struct platform_device *pdev) } keypad->irq = platform_get_irq(pdev, 0); - if (!keypad->irq) { + if (keypad->irq < 0) { err = -ENXIO; goto failed_free; } -- 2.7.4 From 1584600737574421071@xxx Mon Nov 20 15:50:25 +0000 2017 X-GM-THRID: 1584356489495704941 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread