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: Marc Kleine-Budde <mkl@pengutronix.de>
Date: 2013-08-21 09:45:02
Also in: linux-can

On 08/21/2013 11:09 AM, Chen Gang wrote:
'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.

Marc
-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |

Attachments

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