Thread (3 messages) 3 messages, 2 authors, 2013-08-21

Re: [PATCH next] drivers: net: can: c_can: add type cast from 'unsigned int' to 'int'

From: Chen Gang <hidden>
Date: 2013-08-21 10:05:33
Also in: linux-can

On 08/21/2013 05:45 PM, Marc Kleine-Budde wrote:
On 08/21/2013 11:09 AM, Chen Gang wrote:
quoted
'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]
Tnx, I've tweaked the commit message a bit, will send a v2.
OK, thanks.
Marc

-- 
Chen Gang
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help