diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2020-03-08 20:52:41 -0700 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-03-10 10:27:28 +0530 |
commit | 650c0e525ce60e80b6756aa8cc4eeae5b20ccbd8 (patch) | |
tree | 579e92ff39fa780818fe483337850d28df5ddb15 /lib/sbi/sbi_bitops.c | |
parent | 6e87507db6ce7be39ccccb33d6283814f0283c09 (diff) |
lib: sbi: Fix coding style issues
This fixes various coding style issues found in the SBI codes.
No functional changes.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'lib/sbi/sbi_bitops.c')
-rw-r--r-- | lib/sbi/sbi_bitops.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/sbi/sbi_bitops.c b/lib/sbi/sbi_bitops.c index 1355243..de9d045 100644 --- a/lib/sbi/sbi_bitops.c +++ b/lib/sbi/sbi_bitops.c @@ -20,7 +20,7 @@ * Returns the bit number of the first set bit. */ unsigned long find_first_bit(const unsigned long *addr, - unsigned long size) + unsigned long size) { const unsigned long *p = addr; unsigned long result = 0; @@ -50,7 +50,7 @@ found: * Returns the bit number of the first cleared bit. */ unsigned long find_first_zero_bit(const unsigned long *addr, - unsigned long size) + unsigned long size) { const unsigned long *p = addr; unsigned long result = 0; @@ -80,7 +80,7 @@ found: * Returns the bit number of the first set bit, or size. */ unsigned long find_last_bit(const unsigned long *addr, - unsigned long size) + unsigned long size) { unsigned long words; unsigned long tmp; @@ -115,7 +115,7 @@ found: * @size: The bitmap size in bits */ unsigned long find_next_bit(const unsigned long *addr, - unsigned long size, unsigned long offset) + unsigned long size, unsigned long offset) { const unsigned long *p = addr + BITOP_WORD(offset); unsigned long result = offset & ~(BITS_PER_LONG-1); @@ -160,8 +160,8 @@ found_middle: * @size: The bitmap size in bits */ unsigned long find_next_zero_bit(const unsigned long *addr, - unsigned long size, - unsigned long offset) + unsigned long size, + unsigned long offset) { const unsigned long *p = addr + BITOP_WORD(offset); unsigned long result = offset & ~(BITS_PER_LONG-1); |