From: Chris Metcalf Date: Mon, 9 Sep 2013 18:11:54 +0000 (-0400) Subject: net: tilegx driver: avoid compiler warning X-Git-Tag: v3.12-rc1~53^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=444fa88ac35aa1bf9b7c23945444bc67f631033b;p=pandora-kernel.git net: tilegx driver: avoid compiler warning The "id" variable was being incremented in common code, but only initialized and used in IPv4 code. We move the increment to the IPv4 code too, and then legitimately use the uninitialized_var() macro to avoid the gcc 4.6 warning that 'id' may be used uninitialized. Note that gcc 4.7 does not warn. Signed-off-by: Chris Metcalf Signed-off-by: David S. Miller --- Reading git-diff-tree failed