From patchwork Mon Sep 21 13:33:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 7230901 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 29680BEEC1 for ; Mon, 21 Sep 2015 13:48:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 50C2C20761 for ; Mon, 21 Sep 2015 13:48:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6C37220764 for ; Mon, 21 Sep 2015 13:48:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932547AbbIUNsi (ORCPT ); Mon, 21 Sep 2015 09:48:38 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:34733 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932348AbbIUNgW (ORCPT ); Mon, 21 Sep 2015 09:36:22 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NV100IY94GKH230@mailout1.w1.samsung.com>; Mon, 21 Sep 2015 14:36:20 +0100 (BST) X-AuditID: cbfec7f4-f79c56d0000012ee-e9-560007d4c0fe Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 1B.67.04846.4D700065; Mon, 21 Sep 2015 14:36:20 +0100 (BST) Received: from AMDC1061.digital.local ([106.116.147.88]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NV100LNT4DTKI10@eusync3.samsung.com>; Mon, 21 Sep 2015 14:36:20 +0100 (BST) From: Andrzej Hajda To: linux-kernel@vger.kernel.org Cc: Andrzej Hajda , Bartlomiej Zolnierkiewicz , Marek Szyprowski , Mauro Carvalho Chehab , Greg Kroah-Hartman , Hans Verkuil , Sakari Ailus , Boris BREZILLON , Tapasweni Pathak , linux-media@vger.kernel.org, devel@driverdev.osuosl.org Subject: [PATCH 25/38] staging: media: davinci_vpfe: fix ipipe_mode type Date: Mon, 21 Sep 2015 15:33:57 +0200 Message-id: <1442842450-29769-26-git-send-email-a.hajda@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1442842450-29769-1-git-send-email-a.hajda@samsung.com> References: <1442842450-29769-1-git-send-email-a.hajda@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrALMWRmVeSWpSXmKPExsVy+t/xq7pX2BnCDLaeF7W4te4cq8XGGetZ LQ68WMhisefML3aL5sXr2SyW/NzFZHF51xw2i54NW1kt1h65y26x+lmFxact35gs+k5tYnbg 8ZjyeyOrx719h1k8nmy6yOixc9Zddo95JwM99s9dw+6xpR/I69uyitHj8ya5AM4oLpuU1JzM stQifbsEroyH+5+yFuxgr/j28j57A+MOti5GTg4JAROJ+1OfQtliEhfurQeyuTiEBJYySlyZ tJgVwmlikmjd+ogRpIpNQFPi7+abYB0iAgoSm3ufgRUxC7xnlpi46iJYkbCAh8TL7X3MIDaL gKrE2b6lYDavgIvE+957jBDr5CROHpvMCmJzAsUPHPzCAmILCThLHFhyhGkCI+8CRoZVjKKp pckFxUnpuYZ6xYm5xaV56XrJ+bmbGCHh+mUH4+JjVocYBTgYlXh4HQT+hwqxJpYVV+YeYpTg YFYS4dWZBRTiTUmsrEotyo8vKs1JLT7EKM3BoiTOO3fX+xAhgfTEktTs1NSC1CKYLBMHp1QD o0QVj9veJMamrXLLNb9rTGbWDt25lv1nwrsTr35KJbolejRHGvQ0TVfSEmFkXSX2TEjM10x+ tv/FGVt3WDcfCbyzoXBqtKHhiddJZ2eyffrwcGNfxpf/ea62d15f8LwbINrGmdBquvGt2NSS NXpPL7L7X2RUmOLheKxIxGlRvbjg1OzmCLE6JZbijERDLeai4kQAhYkLOVMCAAA= Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The variable can take negative values. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576 Signed-off-by: Andrzej Hajda Acked-by: Laurent Pinchart --- drivers/staging/media/davinci_vpfe/dm365_ipipe_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/davinci_vpfe/dm365_ipipe_hw.c b/drivers/staging/media/davinci_vpfe/dm365_ipipe_hw.c index 2a3a56b..b1d5e23 100644 --- a/drivers/staging/media/davinci_vpfe/dm365_ipipe_hw.c +++ b/drivers/staging/media/davinci_vpfe/dm365_ipipe_hw.c @@ -254,7 +254,7 @@ int config_ipipe_hw(struct vpfe_ipipe_device *ipipe) void __iomem *ipipe_base = ipipe->base_addr; struct v4l2_mbus_framefmt *outformat; u32 color_pat; - u32 ipipe_mode; + int ipipe_mode; u32 data_path; /* enable clock to IPIPE */