Skip to content

Commit 8d6ea5b

Browse files
committed
plugins/wdc: Fix code scanning alert
Fix the comparison of narrow type with wide type in loop condition. Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
1 parent be9a239 commit 8d6ea5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/wdc/wdc-nvme.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -9708,7 +9708,7 @@ static int wdc_de_get_dump_trace(struct nvme_dev *dev, char *filePath, __u16 bin
97089708
__u32 chunkSize;
97099709
__u32 chunks;
97109710
__u32 offset;
9711-
__u16 i;
9711+
__u32 i;
97129712
__u32 maximumTransferLength = 0;
97139713

97149714
if (!dev || !binFileName || !filePath) {

0 commit comments

Comments
 (0)