Skip to content

Commit f647a5c

Browse files
gmarullnashif
authored andcommitted
drivers: display: st7789v: remove incorrect error check
The st7789v_transmit function does not return any error code (void), so ret = st7789v_transmit(...) is wrong. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
1 parent 05755df commit f647a5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/display/display_st7789v.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ static int st7789v_pm_control(const struct device *dev,
407407
st7789v_exit_sleep(data);
408408
break;
409409
case PM_DEVICE_ACTION_SUSPEND:
410-
ret = st7789v_transmit(data, ST7789V_CMD_SLEEP_IN, NULL, 0);
410+
st7789v_transmit(data, ST7789V_CMD_SLEEP_IN, NULL, 0);
411411
break;
412412
default:
413413
ret = -ENOTSUP;

0 commit comments

Comments
 (0)