From patchwork Wed Sep 26 03:53:59 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 11725 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 4FF3423EB4 for ; Wed, 26 Sep 2012 03:57:43 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id D5115A19182 for ; Wed, 26 Sep 2012 03:57:42 +0000 (UTC) Received: by ieje10 with SMTP id e10so394593iej.11 for ; Tue, 25 Sep 2012 20:57:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=+Rka5HYTP0YRzujWRsiAxbL8wtFSVReq0X4uUc8nWh8=; b=g67tZLrrIKJ/Dat/wtKzw3epHZYs1K/+JGakJM8PrMhuSG/Pi4FrgIEr21aQiQwcrb Jt4NgSKqXOCKpKGEuNqT2tlouZqixaZfP3Evl1LaY5gcGTjquPKh//z0RzKvurC7L+35 JKavFwjkO88TSAvOdisVAJPyVmbI+KLhZ0pd6+56GSoGKASMHqWpFDv44FodTVWF2qxp y2DMnbAbHiL6d75CwYf37c7T1cuOza75c2czlLbJFOKYsKZUTsXWPm8HZizSVpr0BZlu ubtdN0RQAc15i7oNNPdLw255ajJxvC3tZpVSG8oztKV+hSbzRimACBAXnFE1TzMJ9O9c +K0A== Received: by 10.50.0.193 with SMTP id 1mr10124568igg.0.1348631861984; Tue, 25 Sep 2012 20:57:41 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp334045igc; Tue, 25 Sep 2012 20:57:41 -0700 (PDT) Received: by 10.68.221.168 with SMTP id qf8mr51102866pbc.37.1348631860845; Tue, 25 Sep 2012 20:57:40 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id hf4si2603795pbc.319.2012.09.25.20.57.40 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 25 Sep 2012 20:57:40 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by pbcwz7 with SMTP id wz7so1312870pbc.37 for ; Tue, 25 Sep 2012 20:57:40 -0700 (PDT) Received: by 10.66.90.36 with SMTP id bt4mr45565566pab.54.1348631860305; Tue, 25 Sep 2012 20:57:40 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id w4sm1183246paz.38.2012.09.25.20.57.37 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 25 Sep 2012 20:57:39 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: s.nawrocki@samsung.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH Resend] [media] s5p-fimc: Fix incorrect condition in fimc_lite_reqbufs() Date: Wed, 26 Sep 2012 09:23:59 +0530 Message-Id: <1348631639-17432-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQn7F4EhhrBsj/ml/dEU0VOQB/vcqVAg5AyecZyqwLLg6CgePQd/PF/RvvPkqSRsw97ACYaz Fixes a typo in a conditional evaluation. Signed-off-by: Sachin Kamat --- drivers/media/platform/s5p-fimc/fimc-lite.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/platform/s5p-fimc/fimc-lite.c b/drivers/media/platform/s5p-fimc/fimc-lite.c index 9289008..505200d 100644 --- a/drivers/media/platform/s5p-fimc/fimc-lite.c +++ b/drivers/media/platform/s5p-fimc/fimc-lite.c @@ -825,7 +825,7 @@ static int fimc_lite_reqbufs(struct file *file, void *priv, reqbufs->count = max_t(u32, FLITE_REQ_BUFS_MIN, reqbufs->count); ret = vb2_reqbufs(&fimc->vb_queue, reqbufs); - if (!ret < 0) + if (!ret) fimc->reqbufs_count = reqbufs->count; return ret;