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: 1507421 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 1D43CDF238 for ; Wed, 26 Sep 2012 03:58:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751884Ab2IZD5l (ORCPT ); Tue, 25 Sep 2012 23:57:41 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:35564 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751613Ab2IZD5k (ORCPT ); Tue, 25 Sep 2012 23:57:40 -0400 Received: by pbbrr4 with SMTP id rr4so1201919pbb.19 for ; Tue, 25 Sep 2012 20:57:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=+Rka5HYTP0YRzujWRsiAxbL8wtFSVReq0X4uUc8nWh8=; b=XSNdZBXcl4CVcZCsibmEUjfrxjKmc6XyOfvhXPKzP34gEwtAjXp9SPV+SlRu2QnfON KLoPIFWJVuL5egFF6+6zIHCoHiJ5NFPx0DGN7mAmXdT+GOiTvvJ2RDsoUT48s+OWaUq+ TJUYWrqHKugJidIhA5DNWfdGlRB/2I+mYot/QSgE6KYHeLa9OAw7/IvSiDEbqYlnJnL9 5Nv8/5cWBjHSh/tBwBp/RJinSEg7m4ITSCh6BmtoXbfzkKjBYTgpXCAmRBifE1WhVoN6 rSA32fFEX46PfdrLUMyvVpxgTqPzYNdRSki/zdj/+Zbptyve+F5upYx48CE3+faIxI52 B70g== 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: ALoCoQmcLy4iiQg1NtbcmcA+sUVFr0Uktx0JOiCixxKkYmEfE7UOKQFXvLIUDYQ20IFgnVrmexDe Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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;