From: Sudip Mukherjee Date: Tue, 18 Nov 2014 13:47:07 +0000 (+0530) Subject: can: xilinx_can: fix comparison of unsigned variable X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~83^2~11^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb3ec7ba5a665c280f7299a36460449038fc1083;p=pandora-kernel.git can: xilinx_can: fix comparison of unsigned variable The variable err was of the type u32. It was being compared with < 0, and being an unsigned variable the comparison would have been always false. Moreover, err was getting the return value from set_reset_mode() and xcan_set_bittiming(), and both are returning int. Signed-off-by: Sudip Mukherjee Reviewed-by: Michal Simek Signed-off-by: Marc Kleine-Budde --- Reading git-diff-tree failed