From patchwork Mon Aug 16 16:27:47 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 119744 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o7GGTkU8011071 for ; Mon, 16 Aug 2010 16:29:46 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755131Ab0HPQ1v (ORCPT ); Mon, 16 Aug 2010 12:27:51 -0400 Received: from mgw2.diku.dk ([130.225.96.92]:50803 "EHLO mgw2.diku.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755115Ab0HPQ1t (ORCPT ); Mon, 16 Aug 2010 12:27:49 -0400 Received: from localhost (localhost [127.0.0.1]) by mgw2.diku.dk (Postfix) with ESMTP id 366B119BE21; Mon, 16 Aug 2010 18:27:48 +0200 (CEST) Received: from mgw2.diku.dk ([127.0.0.1]) by localhost (mgw2.diku.dk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24017-19; Mon, 16 Aug 2010 18:27:47 +0200 (CEST) Received: from nhugin.diku.dk (nhugin.diku.dk [130.225.96.140]) by mgw2.diku.dk (Postfix) with ESMTP id 2D3B119BE5F; Mon, 16 Aug 2010 18:27:47 +0200 (CEST) Received: from ask.diku.dk (ask.diku.dk [130.225.96.225]) by nhugin.diku.dk (Postfix) with ESMTP id 936BA6DFCFF; Mon, 16 Aug 2010 18:26:20 +0200 (CEST) Received: by ask.diku.dk (Postfix, from userid 3767) id 1117E200C3; Mon, 16 Aug 2010 18:27:47 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by ask.diku.dk (Postfix) with ESMTP id 0889D200BD; Mon, 16 Aug 2010 18:27:47 +0200 (CEST) Date: Mon, 16 Aug 2010 18:27:47 +0200 (CEST) From: Julia Lawall To: Antoine Jacquet , Mauro Carvalho Chehab , linux-usb@vger.kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH 11/16] drivers/media/video: Use available error codes Message-ID: MIME-Version: 1.0 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]); Mon, 16 Aug 2010 16:29:46 +0000 (UTC) diff --git a/drivers/media/video/zr364xx.c b/drivers/media/video/zr364xx.c index a82b5bd..616c61f 100644 --- a/drivers/media/video/zr364xx.c +++ b/drivers/media/video/zr364xx.c @@ -572,7 +572,7 @@ static int zr364xx_got_frame(struct zr364xx_camera *cam, int jpgsize) DBG("wakeup [buf/i] [%p/%d]\n", buf, buf->vb.i); unlock: spin_unlock_irqrestore(&cam->slock, flags); - return 0; + return rc; } /* this function moves the usb stream read pipe data