diff options
Diffstat (limited to 'driver/led')
-rw-r--r-- | driver/led/oz554.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/driver/led/oz554.c b/driver/led/oz554.c index fcbbee46ce..504ac55e90 100644 --- a/driver/led/oz554.c +++ b/driver/led/oz554.c @@ -124,9 +124,11 @@ int oz554_set_config(int offset, int data) if (oz554_conf[i].offset == offset) break; } - if (i >= oz554_conf_size) + if (i >= oz554_conf_size) { /* Matching offset not found */ + CPRINTS("oz554: offset %d not found", i); return EC_ERROR_INVAL; + } oz554_conf[i].data = data; return EC_SUCCESS; } |