Skip to content

Commit

Permalink
plugins/wdc: Fix narrow index variable type in for loop to __u32
Browse files Browse the repository at this point in the history
Fix the comparison of narrow type with wide type in loop condition.

Signed-off-by: Tokunori Ikegami <[email protected]>
  • Loading branch information
ikegami-t committed Mar 22, 2024
1 parent 90afb96 commit fc584a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/wdc/wdc-nvme.c
Original file line number Diff line number Diff line change
Expand Up @@ -9627,7 +9627,7 @@ static int wdc_de_get_dump_trace(struct nvme_dev *dev, char *filePath, __u16 bin
__u32 chunkSize;
__u32 chunks;
__u32 offset;
__u16 i;
__u32 i;
__u32 maximumTransferLength = 0;

if (!dev || !binFileName || !filePath) {
Expand Down

0 comments on commit fc584a5

Please sign in to comment.