Murilo Opsfelder Araujo 7e415282b4 virtio-pci: Remove wrong address verification in vp_del_vqs()
GCC 12 enhanced -Waddress when comparing array address to null [0],
which warns:

    drivers/virtio/virtio_pci_common.c: In function ‘vp_del_vqs’:
    drivers/virtio/virtio_pci_common.c:257:29: warning: the comparison will always evaluate as ‘true’ for the pointer operand in ‘vp_dev->msix_affinity_masks + (sizetype)((long unsigned int)i * 256)’ must not be NULL [-Waddress]
      257 |                         if (vp_dev->msix_affinity_masks[i])
          |                             ^~~~~~

In fact, the verification is comparing the result of a pointer
arithmetic, the address "msix_affinity_masks + i", which will always
evaluate to true.

Under the hood, free_cpumask_var() calls kfree(), which is safe to pass
NULL, not requiring non-null verification.  So remove the verification
to make compiler happy (happy compiler, happy life).

[0] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102103

Signed-off-by: Murilo Opsfelder Araujo <muriloo@linux.ibm.com>
Message-Id: <20220415023002.49805-1-muriloo@linux.ibm.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Christophe de Dinechin <dinechin@redhat.com>
2022-05-31 12:45:08 -04:00
..
2022-05-23 14:14:50 -07:00
2022-05-27 21:24:19 -07:00
2022-05-26 10:32:47 -07:00
2022-05-15 18:31:28 -06:00
2022-05-29 11:38:27 -07:00
2022-05-26 10:50:30 -07:00
2022-05-28 11:27:17 -07:00
2022-05-29 11:38:27 -07:00
2022-05-25 16:18:27 -07:00
2022-05-28 11:39:01 -07:00
2022-05-25 16:18:27 -07:00
2022-05-24 16:19:30 -07:00
2022-05-26 21:08:40 -07:00
2022-05-25 19:18:36 -07:00
2022-05-26 14:51:38 -07:00
2022-05-27 15:49:30 -07:00
2022-05-25 12:22:58 -07:00
2022-05-28 11:27:17 -07:00
2022-05-30 10:56:18 -07:00
2022-05-24 15:13:30 -07:00
2022-05-26 10:50:30 -07:00
2022-05-27 21:24:19 -07:00
2022-05-26 21:08:40 -07:00
2022-05-25 16:18:27 -07:00
2022-05-25 15:02:26 +02:00
2022-05-28 11:39:01 -07:00
2022-05-23 21:06:11 -07:00
2022-05-30 11:01:50 -07:00
2022-05-24 11:39:54 -07:00
2022-05-09 23:09:10 +02:00
2022-05-23 20:56:17 -07:00
2022-05-27 15:49:30 -07:00
2022-05-28 11:39:01 -07:00
2022-05-11 08:29:11 +03:00
2022-05-25 16:55:16 -07:00
2022-05-25 19:09:48 -07:00
2022-05-26 10:32:47 -07:00
2022-05-30 11:30:16 -07:00
2022-05-31 12:45:08 -04:00
2022-05-25 13:56:57 -07:00
2022-05-25 19:18:36 -07:00