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 <taemin.yeom@samsung.com>
ret = __create_linehandle(mdata, direction);
/* Unlock at the end */
- flock(mdata->fd_chip, LOCK_UN);
+ (void)flock(mdata->fd_chip, LOCK_UN);
return ret;
}