diff options
author | 2022-03-08 09:09:14 +0100 | |
---|---|---|
committer | 2022-03-18 13:18:59 +0100 | |
commit | 3aec400965500697179aed4497d9ad8dc9502e37 (patch) | |
tree | 14e77027e1d051dcafc3f7c99824180bd24b90fe /scripts/gdb/linux/utils.py | |
parent | tty: serial: samsung: embed s3c2410_uartcfg in parent structure (diff) | |
download | wireguard-linux-3aec400965500697179aed4497d9ad8dc9502e37.tar.xz wireguard-linux-3aec400965500697179aed4497d9ad8dc9502e37.zip |
tty: serial: samsung: reduce number of casts
The pointers to instances of "struct s3c24xx_serial_drv_data" are first
cast to kernel_ulong_t and then either used directly
(in "platform_device_id.driver_data") or cast again to void * (in
"of_device_id.data").
One cast can be dropped, so at least for "of_device_id.data" case there
will be no casts at all. This makes the code a bit simpler.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Link: https://lore.kernel.org/r/20220308080919.152715-4-krzysztof.kozlowski@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions