]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virscsi: Drop @tmp from virSCSIDeviceListDel
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 23 Aug 2021 10:54:32 +0000 (12:54 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 26 Aug 2021 07:16:44 +0000 (09:16 +0200)
commitcb50dc0ecb92598b76d951953cc1306a53b35bdf
tree2e68171ab2a226b658a3ae9daad2291702c86650
parent9f28af4920342216e6a5149d2b10469e77affcbe
virscsi: Drop @tmp from virSCSIDeviceListDel

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@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/util/virscsi.c