Skip to content

Commit df7dd86

Browse files
committed
PLEASE CHECK: size is always >= 0. Did you mean size > 0 ?
1 parent a1a75ee commit df7dd86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tmf882x_mode_bl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ int32_t tmf882x_mode_bl_read_status(struct tmf882x_mode_bl *bl,
128128
continue;
129129
}
130130
/* if we have reached here, the command has either succeeded or failed */
131-
if ( *rdata_size >= 0 ) {
131+
if ( *rdata_size > 0 ) {
132132
/* read in data part and csum */
133133
error = tof_i2c_read(priv(bl), BL_REG_CMD_STATUS,
134134
rbuf, BL_CALC_RSP_SIZE(*rdata_size));

0 commit comments

Comments
 (0)