@@ -626,14 +626,12 @@ static void mux_dl_adb_decode(struct iosm_mux *ipc_mux,
626
626
if (adth -> signature != cpu_to_le32 (IOSM_AGGR_MUX_SIG_ADTH ))
627
627
goto adb_decode_err ;
628
628
629
- if (le16_to_cpu (adth -> table_length ) < (sizeof (struct mux_adth ) -
630
- sizeof (struct mux_adth_dg )))
629
+ if (le16_to_cpu (adth -> table_length ) < sizeof (struct mux_adth ))
631
630
goto adb_decode_err ;
632
631
633
632
/* Calculate the number of datagrams. */
634
633
nr_of_dg = (le16_to_cpu (adth -> table_length ) -
635
- sizeof (struct mux_adth ) +
636
- sizeof (struct mux_adth_dg )) /
634
+ sizeof (struct mux_adth )) /
637
635
sizeof (struct mux_adth_dg );
638
636
639
637
/* Is the datagram table empty ? */
@@ -649,7 +647,7 @@ static void mux_dl_adb_decode(struct iosm_mux *ipc_mux,
649
647
}
650
648
651
649
/* New aggregated datagram table. */
652
- dg = & adth -> dg ;
650
+ dg = adth -> dg ;
653
651
if (mux_dl_process_dg (ipc_mux , adbh , dg , skb , if_id ,
654
652
nr_of_dg ) < 0 )
655
653
goto adb_decode_err ;
@@ -849,7 +847,7 @@ static void ipc_mux_ul_encode_adth(struct iosm_mux *ipc_mux,
849
847
adth -> if_id = i ;
850
848
adth -> table_length = cpu_to_le16 (adth_dg_size );
851
849
adth_dg_size -= offsetof(struct mux_adth , dg );
852
- memcpy (& adth -> dg , ul_adb -> dg [i ], adth_dg_size );
850
+ memcpy (adth -> dg , ul_adb -> dg [i ], adth_dg_size );
853
851
ul_adb -> if_cnt ++ ;
854
852
}
855
853
@@ -1426,14 +1424,13 @@ static int ipc_mux_get_payload_from_adb(struct iosm_mux *ipc_mux,
1426
1424
1427
1425
if (adth -> signature == cpu_to_le32 (IOSM_AGGR_MUX_SIG_ADTH )) {
1428
1426
nr_of_dg = (le16_to_cpu (adth -> table_length ) -
1429
- sizeof (struct mux_adth ) +
1430
- sizeof (struct mux_adth_dg )) /
1427
+ sizeof (struct mux_adth )) /
1431
1428
sizeof (struct mux_adth_dg );
1432
1429
1433
1430
if (nr_of_dg <= 0 )
1434
1431
return payload_size ;
1435
1432
1436
- dg = & adth -> dg ;
1433
+ dg = adth -> dg ;
1437
1434
1438
1435
for (i = 0 ; i < nr_of_dg ; i ++ , dg ++ ) {
1439
1436
if (le32_to_cpu (dg -> datagram_index ) <
0 commit comments