Skip to content

Commit 9965a37

Browse files
Renyong Wanshemminger
authored andcommitted
net/xsc: suppress assignment warning
This issue was reported by PVS studio, described as: https://pvs-studio.com/en/docs/warnings/v1048/ This warning is harmless since both structs have the same size. The tool is just being annoying, so we should suppress it. Signed-off-by: Rong Qian <[email protected]> Signed-off-by: Renyong Wan <[email protected]>
1 parent 3d57851 commit 9965a37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/xsc/xsc_vfio_mbox.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ xsc_vfio_mbox_init(struct xsc_dev *xdev)
572572
cmdq->req_lay = cmdq->req_mz->addr;
573573

574574
snprintf(name, RTE_MEMZONE_NAMESIZE, "%s_cmd_cq", xdev->pci_dev->device.name);
575-
size = (1 << XSC_CMDQ_DEPTH_LOG) * sizeof(struct xsc_cmdq_rsp_layout);
575+
size = (1 << XSC_CMDQ_DEPTH_LOG) * sizeof(struct xsc_cmdq_rsp_layout); /* -V1048 */
576576
cmdq->rsp_mz = rte_memzone_reserve_aligned(name,
577577
size, SOCKET_ID_ANY,
578578
RTE_MEMZONE_IOVA_CONTIG,

0 commit comments

Comments
 (0)