From patchwork Sun Apr 19 20:03:09 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Klimov X-Patchwork-Id: 18939 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n3JK3LmD009857 for ; Sun, 19 Apr 2009 20:03:21 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757128AbZDSUDS (ORCPT ); Sun, 19 Apr 2009 16:03:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757307AbZDSUDS (ORCPT ); Sun, 19 Apr 2009 16:03:18 -0400 Received: from mail-fx0-f158.google.com ([209.85.220.158]:47786 "EHLO mail-fx0-f158.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757128AbZDSUDR (ORCPT ); Sun, 19 Apr 2009 16:03:17 -0400 Received: by fxm2 with SMTP id 2so1649989fxm.37 for ; Sun, 19 Apr 2009 13:03:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=ji4FHaykxqkmU3CwwciSREeBYDnnUQTAff5D62K/7eg=; b=KBmrWo8Zu1B7UTVAW01NtO8HkeLBc92ZLsGATOuGdoNqwHvNRugfIHNj7FSxSDusME gPvr7uDfh9y518zi4y/iDqaJc8IK7EAZ8FkNxfu1kmOI2diHz08ih+N3m7OPxkQEbxXu bnJ6jqRm9y01QinQhjyZHuai5MPwQw1sosop0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; b=BU1d3y6MtMnRDXTZKjpNNeOu0WFR3L+mzLm5+/5wkunZXhsJrDrY4v0xng5ddHifhu YZRtVuE5YRsS51axoAzD3ohN1nl3mdyhaHaFVlXso08Jetuh8E9VjuyzjpR1NhyTyXkj XZhYkUkAby8FPHzOXLoQajaJ+3E/vafW3wpbk= Received: by 10.86.95.8 with SMTP id s8mr3481411fgb.24.1240171395664; Sun, 19 Apr 2009 13:03:15 -0700 (PDT) Received: from ?192.168.1.42? (gw.zunet.ru [217.67.117.64]) by mx.google.com with ESMTPS id l19sm3592343fgb.6.2009.04.19.13.03.14 (version=SSLv3 cipher=RC4-MD5); Sun, 19 Apr 2009 13:03:15 -0700 (PDT) Subject: [patch review] uvc_driver: fix compile warning From: Alexey Klimov To: Laurent Pinchart , Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, Hans Verkuil Date: Mon, 20 Apr 2009 00:03:09 +0400 Message-Id: <1240171389.12537.3.camel@tux.localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Hello, all I saw warnings in v4l-dvb daily build. May this patch be helpful? Signed-off-by: Alexey Klimov diff -r cda79523a93c linux/drivers/media/video/uvc/uvc_driver.c --- a/linux/drivers/media/video/uvc/uvc_driver.c Thu Apr 16 18:30:38 2009 +0200 +++ b/linux/drivers/media/video/uvc/uvc_driver.c Sun Apr 19 23:58:02 2009 +0400 @@ -1726,7 +1726,7 @@ static int __uvc_resume(struct usb_interface *intf, int reset) { struct uvc_device *dev = usb_get_intfdata(intf); - int ret; + int ret = 0; uvc_trace(UVC_TRACE_SUSPEND, "Resuming interface %u\n", intf->cur_altsetting->desc.bInterfaceNumber);