diff options
author | Thomas Graf <tgraf@suug.ch> | 2012-07-05 08:19:58 -0400 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2012-07-10 16:36:17 -0400 |
commit | 5d91efa8dd8ced8647798d067f2ac8125194be58 (patch) | |
tree | 4816f8bd521ee3c41a9c0bd8697a8241615c39d3 /net/can | |
parent | 1da0faa3801e0dcb585b33266a2ac0842f26e58c (diff) |
can: gw: Remove pointless casts
No need to cast return value of nla_data()
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Tested-by: Oliver Hartkopp <socketcan@hartkopp.net>
Acked-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'net/can')
-rw-r--r-- | net/can/gw.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/can/gw.c b/net/can/gw.c index 20c36e10ce85..b54d5e695b03 100644 --- a/net/can/gw.c +++ b/net/can/gw.c | |||
@@ -661,8 +661,7 @@ static int cgw_parse_attr(struct nlmsghdr *nlh, struct cf_mod *mod, | |||
661 | if (modidx) { | 661 | if (modidx) { |
662 | 662 | ||
663 | if (tb[CGW_CS_CRC8]) { | 663 | if (tb[CGW_CS_CRC8]) { |
664 | struct cgw_csum_crc8 *c = (struct cgw_csum_crc8 *)\ | 664 | struct cgw_csum_crc8 *c = nla_data(tb[CGW_CS_CRC8]); |
665 | nla_data(tb[CGW_CS_CRC8]); | ||
666 | 665 | ||
667 | err = cgw_chk_csum_parms(c->from_idx, c->to_idx, | 666 | err = cgw_chk_csum_parms(c->from_idx, c->to_idx, |
668 | c->result_idx); | 667 | c->result_idx); |
@@ -686,8 +685,7 @@ static int cgw_parse_attr(struct nlmsghdr *nlh, struct cf_mod *mod, | |||
686 | } | 685 | } |
687 | 686 | ||
688 | if (tb[CGW_CS_XOR]) { | 687 | if (tb[CGW_CS_XOR]) { |
689 | struct cgw_csum_xor *c = (struct cgw_csum_xor *)\ | 688 | struct cgw_csum_xor *c = nla_data(tb[CGW_CS_XOR]); |
690 | nla_data(tb[CGW_CS_XOR]); | ||
691 | 689 | ||
692 | err = cgw_chk_csum_parms(c->from_idx, c->to_idx, | 690 | err = cgw_chk_csum_parms(c->from_idx, c->to_idx, |
693 | c->result_idx); | 691 | c->result_idx); |