diff options
author | Frank Jungclaus <frank.jungclaus@esd.eu> | 2023-02-22 17:37:54 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2023-03-24 19:12:38 +0100 |
commit | a57915aee31596d2380a875964c78f743162383c (patch) | |
tree | d3e050de03c35cba7363dd674f65228d5df4c05a /lib/clz_tab.c | |
parent | af54c4590d8d886be722f17ef255664bb9ff508d (diff) |
can: esd_usb: Improve code readability by means of replacing struct esd_usb_msg with a union
As suggested by Vincent Mailhol, declare struct esd_usb_msg as a union
instead of a struct. Then replace all msg->msg.something constructs,
that make use of esd_usb_msg, with simpler and prettier looking
msg->something variants.
Link: https://lore.kernel.org/all/CAMZ6RqKRzJwmMShVT9QKwiQ5LJaQupYqkPkKjhRBsP=12QYpfA@mail.gmail.com/
Suggested-by: Vincent MAILHOL <mailhol.vincent@wanadoo.fr>
Signed-off-by: Frank Jungclaus <frank.jungclaus@esd.eu>
Reviewed-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://lore.kernel.org/all/20230222163754.3711766-1-frank.jungclaus@esd.eu
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'lib/clz_tab.c')
0 files changed, 0 insertions, 0 deletions