Re: [PATCH] omap3isp: csiphy: Fix an uninitialized variable compiler warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Dec 11, 2012 at 02:11:52PM +0100, Laurent Pinchart wrote:
> 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 <laurent.pinchart@xxxxxxxxxxxxxxxx>

Thanks!

Acked-by: Sakari Ailus <sakari.ailus@xxxxxx>

-- 
Regards,

Sakari Ailus
e-mail: sakari.ailus@xxxxxx	XMPP: sailus@xxxxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux