From: Matan Barak Date: Thu, 13 Nov 2014 12:45:28 +0000 (+0200) Subject: net/mlx4_core: Use correct variable type for mlx4_slave_cap X-Git-Tag: omap-for-v3.19/fixes-rc1~125^2~192^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=225c6c8c6bbbc32455df3d1c0fb1e1e1fb51c533;p=pandora-kernel.git net/mlx4_core: Use correct variable type for mlx4_slave_cap We've used an incorrect type for the loop counter and the mlx4_QUERY_FUNC_CAP function. The current input modifier is either a port or a boolean. Since the number of ports is always a positive value < 255, we should use u8 instead of an integer with casting. Signed-off-by: Matan Barak Signed-off-by: Or Gerlitz Signed-off-by: David S. Miller --- Reading git-diff-tree failed