Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5d91efa8 authored by Thomas Graf's avatar Thomas Graf Committed by Marc Kleine-Budde
Browse files

can: gw: Remove pointless casts



No need to cast return value of nla_data()

Signed-off-by: default avatarThomas Graf <tgraf@suug.ch>
Tested-by: default avatarOliver Hartkopp <socketcan@hartkopp.net>
Acked-by: default avatarOliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 1da0faa3
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -661,8 +661,7 @@ static int cgw_parse_attr(struct nlmsghdr *nlh, struct cf_mod *mod,
	if (modidx) {

		if (tb[CGW_CS_CRC8]) {
			struct cgw_csum_crc8 *c = (struct cgw_csum_crc8 *)\
				nla_data(tb[CGW_CS_CRC8]);
			struct cgw_csum_crc8 *c = nla_data(tb[CGW_CS_CRC8]);

			err = cgw_chk_csum_parms(c->from_idx, c->to_idx,
						 c->result_idx);
@@ -686,8 +685,7 @@ static int cgw_parse_attr(struct nlmsghdr *nlh, struct cf_mod *mod,
		}

		if (tb[CGW_CS_XOR]) {
			struct cgw_csum_xor *c = (struct cgw_csum_xor *)\
				nla_data(tb[CGW_CS_XOR]);
			struct cgw_csum_xor *c = nla_data(tb[CGW_CS_XOR]);

			err = cgw_chk_csum_parms(c->from_idx, c->to_idx,
						 c->result_idx);