aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorVincent Mailhol <[email protected]>2021-06-29 00:54:20 +0900
committerMarc Kleine-Budde <[email protected]>2021-07-25 11:36:28 +0200
commitf4f5247daa45eef07b1779195fa8d65f19c2eb5f (patch)
treedd2df7d28b68836797f65f27e469c441a4a1cba6 /tools/perf/scripts/python/stackcollapse.py
parent7fcecf51c18fa7e58e21f1a32d6a8df0c6f85784 (diff)
can: etas_es58x: rewrite the message cast in es58{1,_fd}_tx_can_msg to increase readability
The es581_tx_can_msg() does below cast: | tx_can_msg = (struct es581_4_tx_can_msg *) | &es581_4_urb_cmd->bulk_tx_can_msg.tx_can_msg_buf[msg_len - 1]; The -1 offset is to skip the first member of struct es581_4_tx_can_msg. However, es581_4_urb_cmd already has a raw_msg field which can be used instead without the use of an offset calculation. The function es58x_fd_tx_can_msg() is also modified to mirror es581_tx_can_msg(). Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vincent Mailhol <[email protected]> Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions