summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorSergey Shtylyov <s.shtylyov@omp.ru>2022-04-12 23:39:52 +0300
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>2022-04-13 06:42:53 +0300
commit35577381b55ffb4d87cdc9c0d0ada0e81a7d3657 (patch)
treef1d122a8ee2db7df43b03a156e97e59c28eead8f /scripts/gdb/linux/utils.py
parentdafbbf5c57dd6ae01d20b894bc2200e9d9834c4e (diff)
downloadlinux-35577381b55ffb4d87cdc9c0d0ada0e81a7d3657.tar.xz
ata: pata_via: fix sloppy typing in via_do_set_mode()
The local variables 'T' and 'UT' are needlessly declared as *unsigned* *long* -- the corresponding parameters of ata_timing_compute() are both declared as *int*. While fixing up those declarations, also make the 'via_clock' and 'T' variables *const* as they are never re-assigned after initialization -- the object code should remain the same as gcc previously used copy propagation anyway... Found by Linux Verification Center (linuxtesting.org) with the SVACE static analysis tool. Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru> Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions