commit | 6439fbce1075dedfe23165c136f19f44c00ca132 | [log] [tgz] |
---|---|---|
author | Chen Gang <gang.chen@asianux.com> | Wed Aug 21 17:09:33 2013 +0800 |
committer | Marc Kleine-Budde <mkl@pengutronix.de> | Thu Aug 22 09:40:19 2013 +0200 |
tree | 0dc63bd51ab0d28490bf0c45fbbab94acd1497a9 | |
parent | f8825669b3165bbf4380eabfd641f693d02af866 [diff] |
can: c_can: fix error checking of priv->instance in probe() This patch adds a type cast from 'unsigned int' to 'int'. 'priv->instance' may less than zero, so need a type cast, the related warnings (allmodconfig, "EXTRA_CFLAGS=-W"): drivers/net/can/c_can/c_can_platform.c:198:3: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] Signed-off-by: Chen Gang <gang.chen@asianux.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>