mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-26 19:51:32 +00:00
avoid unnecessary function
libf2fs.c:883:12: warning: unused function 'is_power_of_2' [-Wunused-function] Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
163b23d5ac
commit
7485348af8
@ -882,10 +882,12 @@ static int open_check_fs(char *path, int flag)
|
||||
return open(path, O_RDONLY | flag);
|
||||
}
|
||||
|
||||
#ifdef __linux__
|
||||
static int is_power_of_2(unsigned long n)
|
||||
{
|
||||
return (n != 0 && ((n & (n - 1)) == 0));
|
||||
}
|
||||
#endif
|
||||
|
||||
int get_device_info(int i)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user