Commit 1268b163 authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Michal Simek
Browse files

net: can: comparison of unsigned 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: default avatarSudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent 66ddbed1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment