Commit 45d9d3c9 authored by Simran Singhal's avatar Simran Singhal Committed by Greg Kroah-Hartman

staging: rtl8723bs: Remove unnecessary braces for single statements

Clean up unnecessary braces around single statement blocks.
Issues reported by checkpatch.pl as:
WARNING: braces {} are not necessary for single statement blocks
Signed-off-by: default avatarSimran Singhal <singhalsimran0@gmail.com>
Link: https://lore.kernel.org/r/20200325140245.GA11949@simran-Inspiron-5558Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 285d15c2
...@@ -43,9 +43,8 @@ Efuse_Read1ByteFromFakeContent( ...@@ -43,9 +43,8 @@ Efuse_Read1ByteFromFakeContent(
u16 Offset, u16 Offset,
u8 *Value) u8 *Value)
{ {
if (Offset >= EFUSE_MAX_HW_SIZE) { if (Offset >= EFUSE_MAX_HW_SIZE)
return false; return false;
}
/* DbgPrint("Read fake content, offset = %d\n", Offset); */ /* DbgPrint("Read fake content, offset = %d\n", Offset); */
if (fakeEfuseBank == 0) if (fakeEfuseBank == 0)
*Value = fakeEfuseContent[Offset]; *Value = fakeEfuseContent[Offset];
...@@ -65,14 +64,12 @@ Efuse_Write1ByteToFakeContent( ...@@ -65,14 +64,12 @@ Efuse_Write1ByteToFakeContent(
u16 Offset, u16 Offset,
u8 Value) u8 Value)
{ {
if (Offset >= EFUSE_MAX_HW_SIZE) { if (Offset >= EFUSE_MAX_HW_SIZE)
return false; return false;
}
if (fakeEfuseBank == 0) if (fakeEfuseBank == 0)
fakeEfuseContent[Offset] = Value; fakeEfuseContent[Offset] = Value;
else { else
fakeBTEfuseContent[fakeEfuseBank-1][Offset] = Value; fakeBTEfuseContent[fakeEfuseBank-1][Offset] = Value;
}
return true; return true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment