git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f882566
)
can: c_can: fix error checking of priv->instance in probe()
author
Chen Gang
<gang.chen@asianux.com>
Wed, 21 Aug 2013 09:09:33 +0000
(17:09 +0800)
committer
Marc Kleine-Budde
<mkl@pengutronix.de>
Thu, 22 Aug 2013 07:40:19 +0000
(09:40 +0200)
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>
drivers/net/can/c_can/c_can_platform.c
patch
|
blob
|
history
diff --cc
drivers/net/can/c_can/c_can_platform.c
Simple merge