From: Laurent Pinchart Date: Tue, 11 Dec 2012 12:11:52 +0000 (-0300) Subject: [media] omap3isp: csiphy: Fix an uninitialized variable compiler warning X-Git-Tag: v3.9-rc1~93^2~371 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7c3f5ce17a135610b114a17e917b5a53c4d07c4;p=pandora-kernel.git [media] omap3isp: csiphy: Fix an uninitialized variable compiler warning drivers/media/platform/omap3isp/ispcsiphy.c: In function ‘csiphy_routing_cfg’: drivers/media/platform/omap3isp/ispcsiphy.c:71:57: warning: ‘shift’ may be used uninitialized in this function [-Wuninitialized] drivers/media/platform/omap3isp/ispcsiphy.c:40:6: note: ‘shift’ was declared here The warning is a false positive but the compiler is right in complaining. Fix it by using the correct enum data type for the iface argument and adding a default case in the switch statement. Signed-off-by: Laurent Pinchart Acked-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed