commit | f323d7a1d2868c00b2604dca36ad82e8ecbe4270 | [log] [tgz] |
---|---|---|
author | Wolfram Sang <wsa@sang-engineering.com> | Thu Apr 17 10:57:18 2014 +0200 |
committer | Marc Kleine-Budde <mkl@pengutronix.de> | Thu Apr 24 22:09:01 2014 +0200 |
tree | d4db44e61e0d6a6197e47aa74b567f9b034d7608 | |
parent | 939415973fdfb2c16a474e2575ba2581b828ccac [diff] |
can: c_can: use proper type for 'instance' Commit 6439fbce1075 (can: c_can: fix error checking of priv->instance in probe()) found the warning but applied a suboptimal solution. Since, both pdev->id and of_alias_get_id() return integers, it makes sense to convert the variable to an integer and avoid the cast. Signed-off-by: Wolfram Sang <wsa@sang-engineering.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>