From patchwork Mon Jun 4 10:58:48 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 9097 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 3314323E49 for ; Mon, 4 Jun 2012 11:09:49 +0000 (UTC) Received: from mail-gg0-f180.google.com (mail-gg0-f180.google.com [209.85.161.180]) by fiordland.canonical.com (Postfix) with ESMTP id E91ABA1825A for ; Mon, 4 Jun 2012 11:09:48 +0000 (UTC) Received: by ggnf1 with SMTP id f1so3235415ggn.11 for ; Mon, 04 Jun 2012 04:09:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=6k+/FHys1vb+N7OUAMeIV1FzzvqnJN0KF59tP7RVxLM=; b=eF8mTpUW0QKA+fTopFil6QTf4Ai1wG3YmoNx3lYYBquxQcNjSLho+SOWkmyrnqb33w d49DBpFMDaK1p6r7RC0+U2qe1qQXQflrnvxluSJzm7+h8o/4UiglIPN5UwfmkdyVlJzp 7zpv4Ftim41DO0O0XLi4b62/fT/8dDSNl9Bl9uw40hKL0sedUUouyK4Iilg6+8SMQtKA Qs0xbOdMtr39ReVPDLUOvmrL7dg1sR/yEoCJKg89F9qGQ7FbDkTKs11NnlLt+zJ0R7Tf fOyOCbPiVgoIpr2OGmdMgt13wDpeWeVcXSzpbwAwGeulINM4Oa+jIU0n1JJrG6wncML0 s3Fg== Received: by 10.50.57.167 with SMTP id j7mr7353317igq.53.1338808188096; Mon, 04 Jun 2012 04:09:48 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.24.148 with SMTP id v20csp100061ibb; Mon, 4 Jun 2012 04:09:47 -0700 (PDT) Received: by 10.68.227.201 with SMTP id sc9mr39154939pbc.64.1338808186940; Mon, 04 Jun 2012 04:09:46 -0700 (PDT) Received: from mail-pz0-f50.google.com (mail-pz0-f50.google.com [209.85.210.50]) by mx.google.com with ESMTPS id ts4si938693pbc.302.2012.06.04.04.09.46 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 04 Jun 2012 04:09:46 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.210.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by danh15 with SMTP id h15so6651774dan.37 for ; Mon, 04 Jun 2012 04:09:46 -0700 (PDT) Received: by 10.68.197.99 with SMTP id it3mr38112046pbc.148.1338808186616; Mon, 04 Jun 2012 04:09:46 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id ru4sm12947666pbc.66.2012.06.04.04.09.43 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 04 Jun 2012 04:09:45 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, rydberg@euromail.se, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/1] input: mt: Fix null pointer warning Date: Mon, 4 Jun 2012 16:28:48 +0530 Message-Id: <1338807528-1171-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQl156zlPnzmp+LBFPB1aDoV+qRrdPK2dSbFnVy1xJJczVIPSt+1IKr38+aKXmAmBxASvBKO Fixes the following sparse warning: drivers/input/input-mt.c:138:40: warning: Using plain integer as NULL pointer Signed-off-by: Sachin Kamat --- drivers/input/input-mt.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/input/input-mt.c b/drivers/input/input-mt.c index f658086..70a16c7 100644 --- a/drivers/input/input-mt.c +++ b/drivers/input/input-mt.c @@ -135,7 +135,7 @@ EXPORT_SYMBOL(input_mt_report_finger_count); */ void input_mt_report_pointer_emulation(struct input_dev *dev, bool use_count) { - struct input_mt_slot *oldest = 0; + struct input_mt_slot *oldest = NULL; int oldid = dev->trkid; int count = 0; int i;