diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2014-11-18 19:17:07 +0530 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2014-11-18 17:47:49 +0100 |
commit | fb3ec7ba5a665c280f7299a36460449038fc1083 (patch) | |
tree | 5abdbadb2ba03aeb6373c978d50874d4b853d1f2 /drivers/rtc/rtc-snvs.c | |
parent | 4e2061b1e1f6b8e698b36a6518b6f8c15edc4547 (diff) |
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 <sudip@vectorindia.org>
Reviewed-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/rtc/rtc-snvs.c')
0 files changed, 0 insertions, 0 deletions