From: David S. Miller Date: Fri, 6 Nov 2009 06:37:11 +0000 (-0800) Subject: net: Fix build warning in sock_bindtodevice(). X-Git-Tag: v2.6.33-rc1~388^2~489 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=000ba2e43f33901859fd794bb33c885909d53b3b;p=pandora-kernel.git net: Fix build warning in sock_bindtodevice(). net/core/sock.c: In function 'sock_setsockopt': net/core/sock.c:396: warning: 'index' may be used uninitialized in this function net/core/sock.c:396: note: 'index' was declared here GCC can't see that all paths initialize index, so just set it to the default (0) and eliminate the specific code block that handles the null device name string. Signed-off-by: David S. Miller --- Reading git-diff-tree failed