From: Chen Gang Date: Wed, 21 Aug 2013 09:09:33 +0000 (+0800) Subject: can: c_can: fix error checking of priv->instance in probe() X-Git-Tag: v3.12-rc1~132^2~194^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6439fbce1075dedfe23165c136f19f44c00ca132;p=pandora-kernel.git 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 Signed-off-by: Marc Kleine-Budde --- Reading git-diff-tree failed