From patchwork Fri May 25 06:29:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 8957 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 022D323F07 for ; Fri, 25 May 2012 06:40:13 +0000 (UTC) Received: from mail-yx0-f180.google.com (mail-yx0-f180.google.com [209.85.213.180]) by fiordland.canonical.com (Postfix) with ESMTP id B5730A1803E for ; Fri, 25 May 2012 06:40:12 +0000 (UTC) Received: by yenq6 with SMTP id q6so141987yen.11 for ; Thu, 24 May 2012 23:40:12 -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:mime-version:content-type :content-transfer-encoding:x-gm-message-state; bh=94dZXG0wGcTi1c6B246GjyFCi1XPH8Y4NH+YpUVJlcQ=; b=RBQ4WMkWjAuLclKW5cb2lHqR9wrUE7m4jqtol2Z7Aqn3VEuMWY6/dprDMPMQ3WmVTx PwL1cypsLX9zBPNGpj2ZENk9nLKKhHx8a/+/l3KLIWnaZXUBgnBfCHgeJ3h+PSIkZp7G TR/YDJGr0WGi68hNm9D7Yy/O2t9fK0w2PTbIkTaRVkHfMBQyGjCKxW53VaEJfsGgAAmJ 77UDAiuyad4srO86l8zc9Gdi4/bjytSBpBdM0fUWiWu2Hdzbyo/9AvqQo6M7viN4sxlj QYh6x/tuPi7ULlandv9k7wTbLSugsEvh7gj/5qgUz+MudhRE+LJnGo1cKZnJ8zKcyi9W WboA== Received: by 10.50.185.233 with SMTP id ff9mr18598898igc.57.1337928011703; Thu, 24 May 2012 23:40:11 -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.231.35.72 with SMTP id o8csp95951ibd; Thu, 24 May 2012 23:40:11 -0700 (PDT) Received: by 10.68.230.68 with SMTP id sw4mr4520451pbc.142.1337928010995; Thu, 24 May 2012 23:40:10 -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 hx7si1017434pbc.14.2012.05.24.23.40.10 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 24 May 2012 23:40:10 -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 pbbrr4 with SMTP id rr4so1560598pbb.37 for ; Thu, 24 May 2012 23:40:10 -0700 (PDT) Received: by 10.68.136.69 with SMTP id py5mr29105994pbb.115.1337928010709; Thu, 24 May 2012 23:40:10 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id mt9sm8066997pbb.14.2012.05.24.23.40.07 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 24 May 2012 23:40:09 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: s.nawrocki@samsung.com, mchehab@infradead.org, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/3] [media] s5p-fimc: Fix compiler warning in fimc-lite.c Date: Fri, 25 May 2012 11:59:38 +0530 Message-Id: <1337927380-4435-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQnpyDyJEZ03BcHlIHY0VbEhBK5+Sa8nEeqfsavoSgMkQwRjRC4uPYvqOk123LTBUquLr7xI Fixes the followng warning: drivers/media/video/s5p-fimc/fimc-lite.c: In function ‘fimc_lite_streamon’: drivers/media/video/s5p-fimc/fimc-lite.c:765:29: warning: ignoring return value of ‘media_entity_pipeline_start’, declared with attribute warn_unused_result [-Wunused-result] Signed-off-by: Sachin Kamat --- drivers/media/video/s5p-fimc/fimc-lite.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/s5p-fimc/fimc-lite.c b/drivers/media/video/s5p-fimc/fimc-lite.c index 400d701a..62faca5 100644 --- a/drivers/media/video/s5p-fimc/fimc-lite.c +++ b/drivers/media/video/s5p-fimc/fimc-lite.c @@ -762,7 +762,9 @@ static int fimc_lite_streamon(struct file *file, void *priv, if (fimc_lite_active(fimc)) return -EBUSY; - media_entity_pipeline_start(&sensor->entity, p->m_pipeline); + ret = media_entity_pipeline_start(&sensor->entity, p->m_pipeline); + if (ret) + return ret; ret = fimc_pipeline_validate(fimc); if (ret) {