From: John Fastabend Date: Fri, 10 Feb 2012 03:19:41 +0000 (+0000) Subject: net: dcb: getnumtcs()/setnumtcs() should return an int X-Git-Tag: v3.4-rc1~177^2~153 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b88f2de30510c0f4e623d3cd5fcd85cdb70b51f;p=pandora-kernel.git net: dcb: getnumtcs()/setnumtcs() should return an int {g|s}etnumtcs() today returns a u8 that is only used by the DCB code to verify no error occurred. Today the driver implementations return negative error codes which end up being non-zero so the logic works out but triggers some sparse warnings. To fix the sparse warnings convert the return value to an int. CC: Eilon Greenstein Reported-by: Dan Carpenter Signed-off-by: John Fastabend Tested-by: Ross Brattain Signed-off-by: Jeff Kirsher --- Reading git-diff-tree failed