From patchwork Sun Feb 7 11:42:20 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roel Kluin X-Patchwork-Id: 77611 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 o17BaBYf023113 for ; Sun, 7 Feb 2010 11:36:11 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755089Ab0BGLfo (ORCPT ); Sun, 7 Feb 2010 06:35:44 -0500 Received: from mail-ew0-f228.google.com ([209.85.219.228]:50772 "EHLO mail-ew0-f228.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754759Ab0BGLfn (ORCPT ); Sun, 7 Feb 2010 06:35:43 -0500 Received: by ewy28 with SMTP id 28so1516579ewy.28 for ; Sun, 07 Feb 2010 03:35:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=miJ7RdDyei38Bgj55VuJGeO165eJ+t1vKSKw0ukS5ek=; b=gGery5WRNrG+VuRv+aEsuWv10jGbu7OmmyNom7dKuEENxkanAbndsCUMaToyUkiBpf 90gUS1JLx5tqJjZKH5wO9zqFQIO1iPQGqkRVUgIrbHavxL6Y33Ja5Hq7eWHYAhWPZUyi C+5jJQOthj+2/RsJadR+uNFNV4YwmZEO6ZrS8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=SnwgDFObPxhKsUdLiArd+PMHmsSXxWzp2XZvXyrsWnrHYsm6T2OzkssMF4Psh0kI59 VauYGrbGFUfgk85cVRduPNYrRI48h+soGTsHzYEoQaOE/tbokokHtA1UJ6pZOrT9jg16 K1xOvv0IhpCZ8DjNiKzYCUUVPdhbTrT6xjgj8= Received: by 10.213.109.77 with SMTP id i13mr4284474ebp.82.1265542541474; Sun, 07 Feb 2010 03:35:41 -0800 (PST) Received: from zoinx.mars (d133062.upc-d.chello.nl [213.46.133.62]) by mx.google.com with ESMTPS id 10sm9248892eyd.45.2010.02.07.03.35.40 (version=SSLv3 cipher=RC4-MD5); Sun, 07 Feb 2010 03:35:41 -0800 (PST) Message-ID: <4B6EA71C.90705@gmail.com> Date: Sun, 07 Feb 2010 12:42:20 +0100 From: Roel Kluin User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7) Gecko/20100120 Fedora/3.0.1-1.fc12 Thunderbird/3.0.1 MIME-Version: 1.0 To: Mauro Carvalho Chehab , linux-media@vger.kernel.org, Andrew Morton , LKML Subject: [PATCH] usbvision-video: wrong variable tested in usbvision_register_video() 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]); Sun, 07 Feb 2010 11:36:11 +0000 (UTC) diff --git a/drivers/media/video/usbvision/usbvision-video.c b/drivers/media/video/usbvision/usbvision-video.c index 1054546..7c17ec6 100644 --- a/drivers/media/video/usbvision/usbvision-video.c +++ b/drivers/media/video/usbvision/usbvision-video.c @@ -1487,7 +1487,7 @@ static int __devinit usbvision_register_video(struct usb_usbvision *usbvision) usbvision->vbi = usbvision_vdev_init(usbvision, &usbvision_vbi_template, "USBVision VBI"); - if (usbvision->vdev == NULL) { + if (usbvision->vbi == NULL) { goto err_exit; } if (video_register_device(usbvision->vbi,