mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 14:19:16 +00:00
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>
This commit is contained in:
parent
1da0faa380
commit
5d91efa8dd
1 changed files with 2 additions and 4 deletions
|
@ -661,8 +661,7 @@ static int cgw_parse_attr(struct nlmsghdr *nlh, struct cf_mod *mod,
|
||||||
if (modidx) {
|
if (modidx) {
|
||||||
|
|
||||||
if (tb[CGW_CS_CRC8]) {
|
if (tb[CGW_CS_CRC8]) {
|
||||||
struct cgw_csum_crc8 *c = (struct cgw_csum_crc8 *)\
|
struct cgw_csum_crc8 *c = nla_data(tb[CGW_CS_CRC8]);
|
||||||
nla_data(tb[CGW_CS_CRC8]);
|
|
||||||
|
|
||||||
err = cgw_chk_csum_parms(c->from_idx, c->to_idx,
|
err = cgw_chk_csum_parms(c->from_idx, c->to_idx,
|
||||||
c->result_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]) {
|
if (tb[CGW_CS_XOR]) {
|
||||||
struct cgw_csum_xor *c = (struct cgw_csum_xor *)\
|
struct cgw_csum_xor *c = nla_data(tb[CGW_CS_XOR]);
|
||||||
nla_data(tb[CGW_CS_XOR]);
|
|
||||||
|
|
||||||
err = cgw_chk_csum_parms(c->from_idx, c->to_idx,
|
err = cgw_chk_csum_parms(c->from_idx, c->to_idx,
|
||||||
c->result_idx);
|
c->result_idx);
|
||||||
|
|
Loading…
Reference in a new issue