From patchwork Wed Dec 16 16:06:33 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roel Kluin X-Patchwork-Id: 68391 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id nBI4ixow005715 for ; Fri, 18 Dec 2009 04:46:20 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933758AbZLPQEn (ORCPT ); Wed, 16 Dec 2009 11:04:43 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932857AbZLPQEm (ORCPT ); Wed, 16 Dec 2009 11:04:42 -0500 Received: from mail-qy0-f192.google.com ([209.85.221.192]:44555 "EHLO mail-qy0-f192.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751319AbZLPQEl (ORCPT ); Wed, 16 Dec 2009 11:04:41 -0500 Received: by qyk30 with SMTP id 30so530361qyk.33 for ; Wed, 16 Dec 2009 08:04:40 -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=GrQKdDoka+8Cp4F1nzQmKVC3uUV9Fx8fklQCIum/92g=; b=NDTaGq8PrHu+GKcSbJwwev2gGGOxGE6JbxXL777AUIOlLFKFNJTygm+SixscU/gXoQ y4eK+BKlL9tTb3gkyHUGaq2Un4XPn3mvC4QuKxBbHsjo97vBxXzyYgNCxHEl3/fsS1p7 bSahrbQtLtl1C7OwCOuWuJ6cvoWR4w0jTTACs= 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=nysVDw+MNAe/LF4wNMgqgxH8xcTy5FyPKkFmoB+G/sQ6l0NYMj9wd3MHN7OFylya0d uTxHHaAn6DQm20ITW7FtpmXz/Fx4lTlEn+wXaCK7zJoSS7uCr9AW3jpqtzv1mk6JJ9/j gpxI94Vir/Hhwb1MTMkiFO/9ZdVQMyRbkrpu8= Received: by 10.102.210.18 with SMTP id i18mr571188mug.32.1260979479776; Wed, 16 Dec 2009 08:04:39 -0800 (PST) Received: from zoinx.mars (d133062.upc-d.chello.nl [213.46.133.62]) by mx.google.com with ESMTPS id y2sm3600366mug.40.2009.12.16.08.04.37 (version=SSLv3 cipher=RC4-MD5); Wed, 16 Dec 2009 08:04:38 -0800 (PST) Message-ID: <4B290589.2030607@gmail.com> Date: Wed, 16 Dec 2009 17:06:33 +0100 From: Roel Kluin User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20090922 Fedora/3.0-3.9.b4.fc12 Thunderbird/3.0b4 MIME-Version: 1.0 To: Mauro Carvalho Chehab , linux-media@vger.kernel.org, Andrew Morton , LKML Subject: [PATCH] vivi: Fix test of unsigned in vivi_create_instance() Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org diff --git a/drivers/media/video/vivi.c b/drivers/media/video/vivi.c index 7705fc6..328af3a 100644 --- a/drivers/media/video/vivi.c +++ b/drivers/media/video/vivi.c @@ -1375,7 +1375,7 @@ static int __init vivi_create_instance(int inst) snprintf(vfd->name, sizeof(vfd->name), "%s (%i)", vivi_template.name, vfd->num); - if (video_nr >= 0) + if (video_nr != -1) video_nr++; dev->vfd = vfd;