Skip to content

Commit 476a398

Browse files
DineshDK03nashif
authored andcommitted
drivers: sensor: grow_r502a: fix in fps_empty_db
return ret; on goto unlock in fps_empty_db function. Signed-off-by: Dinesh Kumar K <[email protected]>
1 parent d33bf33 commit 476a398

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/sensor/grow_r502a/grow_r502a.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ static int fps_empty_db(const struct device *dev)
434434

435435
unlock:
436436
k_mutex_unlock(&drv_data->lock);
437-
return 0;
437+
return ret;
438438
}
439439

440440
static int fps_search(const struct device *dev, uint8_t char_buf_idx)

0 commit comments

Comments
 (0)