Re: [PATCH 3/4] virscsi: Drop @tmp from virSCSIDeviceListDel

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

 



On Wed, Aug 25, 2021 at 14:54:58 +0200, Michal Privoznik wrote:
> Clang on Rawhide started to complain that @tmp variable in
> virSCSIDeviceListDel() is set but not used. This is obviously a
> false positive because the variable is used to free device stolen
> from the list. Anyway, we can do without the variable so in this
> specific case let's fix our code to appease Clang.
> 
> Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
> ---
>  src/util/virscsi.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

Reviewed-by: Peter Krempa <pkrempa@xxxxxxxxxx>




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux