From: Jean Delvare Date: Sun, 31 Mar 2013 10:16:37 +0000 (-0300) Subject: [media] m920x: Fix uninitialized variable warning X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~81^2~118 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0efc3ed0530b08e9e1cba5f63e9c251ca3d7428;p=pandora-kernel.git [media] m920x: Fix uninitialized variable warning drivers/media/usb/dvb-usb/m920x.c:91:6: warning: "ret" may be used uninitialized in this function [-Wuninitialized] drivers/media/usb/dvb-usb/m920x.c:70:6: note: "ret" was declared here This is real, if a remote control has an empty initialization sequence we would get success or failure randomly. OTOH the initialization of ret in m920x_init is needless, the function returns with an error as soon as an error happens, so the last return can only be a success and we can hard-code 0 there. Signed-off-by: Jean Delvare Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed