diff options
author | Valentin Vidic <vvidic@valentin-vidic.from.hr> | 2019-09-02 21:43:19 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-09-03 10:00:30 +0300 |
commit | ef16b89c8243f8407938e5f3e2134444338c1b45 (patch) | |
tree | 32a5b0b80c412e6de9ae5608dc223042113eb9f2 /drivers/staging/exfat | |
parent | 5b489e2ff650ba7d3ff50e80e8dec2305be6bb62 (diff) | |
download | linux-ef16b89c8243f8407938e5f3e2134444338c1b45.tar.xz |
staging: exfat: use BIT macro for defining sizes
Fixes checkpatch.pl warning:
CHECK: Prefer using the BIT macro
Signed-off-by: Valentin Vidic <vvidic@valentin-vidic.from.hr>
Link: https://lore.kernel.org/r/20190902184319.11971-1-vvidic@valentin-vidic.from.hr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/exfat')
-rw-r--r-- | drivers/staging/exfat/exfat.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/exfat/exfat.h b/drivers/staging/exfat/exfat.h index e41754bbdeab..816681d1103a 100644 --- a/drivers/staging/exfat/exfat.h +++ b/drivers/staging/exfat/exfat.h @@ -163,8 +163,8 @@ #define HIGH_INDEX_BIT (8) #define HIGH_INDEX_MASK (0xFF00) #define LOW_INDEX_BIT (16-HIGH_INDEX_BIT) -#define UTBL_ROW_COUNT (1<<LOW_INDEX_BIT) -#define UTBL_COL_COUNT (1<<HIGH_INDEX_BIT) +#define UTBL_ROW_COUNT BIT(LOW_INDEX_BIT) +#define UTBL_COL_COUNT BIT(HIGH_INDEX_BIT) static inline u16 get_col_index(u16 i) { @@ -691,7 +691,7 @@ struct exfat_mount_options { }; #define EXFAT_HASH_BITS 8 -#define EXFAT_HASH_SIZE (1UL << EXFAT_HASH_BITS) +#define EXFAT_HASH_SIZE BIT(EXFAT_HASH_BITS) /* * EXFAT file system in-core superblock data |