From patchwork Tue Jun 1 08:17:27 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 103410 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 o518Hmt2004476 for ; Tue, 1 Jun 2010 08:17:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755065Ab0FAIRp (ORCPT ); Tue, 1 Jun 2010 04:17:45 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:46473 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754342Ab0FAIRo (ORCPT ); Tue, 1 Jun 2010 04:17:44 -0400 Received: by fxm8 with SMTP id 8so669988fxm.19 for ; Tue, 01 Jun 2010 01:17:42 -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:mime-version:content-type:content-disposition:user-agent; bh=bWUzSADQRFmbXX+NdpSmIa8vdx8qkTyBwL14Fe/2Ubk=; b=CauYobHgOXJOY+eJm9pvPQ2U9yaxERMrl1FK8SL8ZsW07NyZRmN88UE09fEq0m9s42 XTCn8v8qCFAN3pgCkUXtY1VPFq+Qh8JZ2BnYlZp9Fp0uZxaDRmlpBv7mfB56NHBadNBk YqJitKCYSMyqczzCSFFNJkv6K7D4RnHyQnZi8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=ouj4nWzY3P8KtRiirgGhKXlZ6+QgAUcihEXf+Z+yLfPt6AE4LTyjGi/C+GDJcLI8Ui yvBJxL1qMRzzpAKenLyUz1wCPk8I8CbVSEHfultCfOzT8kVcj/8HwovaIDjBMBxQLax+ dh87K3pNpvgBFv9iWN6qx9r6/BCtJ+nLCrAOY= Received: by 10.223.29.135 with SMTP id q7mr6658995fac.30.1275380262661; Tue, 01 Jun 2010 01:17:42 -0700 (PDT) Received: from bicker ([205.177.176.130]) by mx.google.com with ESMTPS id 13sm45965569fad.19.2010.06.01.01.17.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 01 Jun 2010 01:17:42 -0700 (PDT) Date: Tue, 1 Jun 2010 10:17:27 +0200 From: Dan Carpenter To: Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [patch] V4L/DVB: cpia_usb: remove unneeded variable Message-ID: <20100601081727.GL5483@bicker> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@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]); Tue, 01 Jun 2010 08:17:49 +0000 (UTC) diff --git a/drivers/media/video/cpia_usb.c b/drivers/media/video/cpia_usb.c index ef1f893..58d193f 100644 --- a/drivers/media/video/cpia_usb.c +++ b/drivers/media/video/cpia_usb.c @@ -584,7 +584,6 @@ static void cpia_disconnect(struct usb_interface *intf) { struct cam_data *cam = usb_get_intfdata(intf); struct usb_cpia *ucpia; - struct usb_device *udev; usb_set_intfdata(intf, NULL); if (!cam) @@ -606,8 +605,6 @@ static void cpia_disconnect(struct usb_interface *intf) if (waitqueue_active(&ucpia->wq_stream)) wake_up_interruptible(&ucpia->wq_stream); - udev = interface_to_usbdev(intf); - ucpia->curbuff = ucpia->workbuff = NULL; vfree(ucpia->buffers[2]);