From patchwork Mon May 31 12:02:15 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 103271 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4VC3UnL022861 for ; Mon, 31 May 2010 12:03:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754161Ab0EaMCg (ORCPT ); Mon, 31 May 2010 08:02:36 -0400 Received: from mail-ew0-f216.google.com ([209.85.219.216]:48721 "EHLO mail-ew0-f216.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753880Ab0EaMCe (ORCPT ); Mon, 31 May 2010 08:02:34 -0400 Received: by ewy8 with SMTP id 8so941949ewy.28 for ; Mon, 31 May 2010 05:02:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:mail-followup-to:mime-version:content-type :content-disposition:user-agent; bh=TEsQ3DhiZrqOYlSBX4/RIsD4teg1Ml9Stoc4n1x7p3Y=; b=VeYnOhho6GwPjuyERu4b5ndPTlCo7kIqohANcomp7WWNKdx+5a6u6biL/PjvY4ulGq fqdOIlhiXAF/qxNl+Nk5ZJCLoZR3cGTYX03Z4ZbY6oeD9oa+YW9Vs8z6IBUVS1qVCUQv tqn7Ef+tfUYqKFIS6oocFruedwAb+GWWNRV5s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mail-followup-to:mime-version :content-type:content-disposition:user-agent; b=mF33oK8X6PZDzNRaNunAefyCDHiFQSHWN7XmtIP8jYR/qcgY+BgBTDORn4SCPiOR2W ww+IESbbK31RI/oHL+VF3f+7KwMh7kz6oz6ANObirR4sO/u7bxm+wKlFPuJ6FYN9qVoQ MNSw+Wd9mAqPlBQ3fMG0JEeqbhOptCRFj3bWA= Received: by 10.213.32.130 with SMTP id c2mr4851206ebd.12.1275307352517; Mon, 31 May 2010 05:02:32 -0700 (PDT) Received: from bicker ([205.177.176.130]) by mx.google.com with ESMTPS id 15sm3014147ewy.4.2010.05.31.05.02.21 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 31 May 2010 05:02:32 -0700 (PDT) Date: Mon, 31 May 2010 14:02:15 +0200 From: Dan Carpenter To: Dmitry Torokhov Cc: Todd Fischer , Samuel Ortiz , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [patch 2/2] input/tps6507x-ts: zero vs NULL Message-ID: <20100531120215.GS5483@bicker> Mail-Followup-To: Dan Carpenter , Dmitry Torokhov , Todd Fischer , Samuel Ortiz , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 31 May 2010 12:03:31 +0000 (UTC) diff --git a/drivers/input/touchscreen/tps6507x-ts.c b/drivers/input/touchscreen/tps6507x-ts.c index b99db09..1e57e4e 100644 --- a/drivers/input/touchscreen/tps6507x-ts.c +++ b/drivers/input/touchscreen/tps6507x-ts.c @@ -342,7 +342,7 @@ err2: cancel_delayed_work(&tsc->work); flush_workqueue(tsc->wq); destroy_workqueue(tsc->wq); - tsc->wq = 0; + tsc->wq = NULL; input_free_device(input_dev); err1: kfree(tsc); @@ -364,7 +364,7 @@ static int __devexit tps6507x_ts_remove(struct platform_device *pdev) cancel_delayed_work(&tsc->work); flush_workqueue(tsc->wq); destroy_workqueue(tsc->wq); - tsc->wq = 0; + tsc->wq = NULL; input_free_device(input_dev);