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:
Jaegeuk Kim 2022-05-25 16:30:00 -07:00 committed by sunshenshen
parent 163b23d5ac
commit 7485348af8

View File

@ -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)
{