Commit a5c36fa6 authored by Andrzej Hajda's avatar Andrzej Hajda Committed by Mauro Carvalho Chehab

[media] staging: media: davinci_vpfe: fix ipipe_mode type

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/2038576Signed-off-by: default avatarAndrzej Hajda <a.hajda@samsung.com>
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent cbb6f1f9
...@@ -254,7 +254,7 @@ int config_ipipe_hw(struct vpfe_ipipe_device *ipipe) ...@@ -254,7 +254,7 @@ int config_ipipe_hw(struct vpfe_ipipe_device *ipipe)
void __iomem *ipipe_base = ipipe->base_addr; void __iomem *ipipe_base = ipipe->base_addr;
struct v4l2_mbus_framefmt *outformat; struct v4l2_mbus_framefmt *outformat;
u32 color_pat; u32 color_pat;
u32 ipipe_mode; int ipipe_mode;
u32 data_path; u32 data_path;
/* enable clock to IPIPE */ /* enable clock to IPIPE */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment