Skip to contentSkip to conversation

lib/mldev: conditional expression always true

DPDK/other Bug 1583 [email protected] 1 participant 1 message Nov 16, 2024

lore
Share & tools
lore
#0 lore raw

https://bugs.dpdk.org/show_bug.cgi?id=1583

            Bug ID: 1583
           Summary: lib/mldev: conditional expression always true
           Product: DPDK
           Version: 24.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: other
          Assignee: [email protected]
          Reporter: [email protected]

Target Milestone: ---

PVS Studio giving warning here. lib/mldev/mldev_utils_scalar.c:495:1: warning: V560 A part of conditional expression is always true.

                } else if ((be_16 >= 1) && (be_16 < (int)(FP16_MASK_E >>

FP16_LSB_E))) {

lib/mldev/mldev_utils_scalar.c:518:1: warning: V560 A part of conditional expression is always true: (be_16 < 1).

                } else if ((be_16 >= -(int)(FP16_MSB_M)) && (be_16 < 1)) {
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.