Re: [PATCH v2] ata: pata_via: fix sloppy typing in via_do_set_mode()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/13/22 05:39, Sergey Shtylyov wrote:
> 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@xxxxxx>

Applied to for-5.19. Thanks !

-- 
Damien Le Moal
Western Digital Research



[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux