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>
        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);
                }
 
                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);