From d9d1daeae0eecfe9305c4cb560b599d02eb88508 Mon Sep 17 00:00:00 2001 From: TaeminYeom Date: Thu, 9 Mar 2023 15:04:28 +0900 Subject: [PATCH] gpio: Change to call flock with void type conversion In the API "gpio_modern_set_direction_xor_edge_mode", After flock fd and set edge mode or direction, unlock fd. This API doesn't use the return value of unlock and use the return of setting edge mode or direction. So, in calling fd unlock, change to call with void type conversion. Change-Id: I7219b666e8779f74e4bff0978835e6b29af79269 Signed-off-by: TaeminYeom --- src/peripheral_gpio_modern_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/peripheral_gpio_modern_api.c b/src/peripheral_gpio_modern_api.c index 6b59604..0aa0cc1 100644 --- a/src/peripheral_gpio_modern_api.c +++ b/src/peripheral_gpio_modern_api.c @@ -173,7 +173,7 @@ int gpio_modern_set_direction_xor_edge_mode(struct gpio_modern_data *mdata, peri ret = __create_linehandle(mdata, direction); /* Unlock at the end */ - flock(mdata->fd_chip, LOCK_UN); + (void)flock(mdata->fd_chip, LOCK_UN); return ret; } -- 2.7.4