Skip to content

Commit 1aa721a

Browse files
treedaviesgregkh
authored andcommitted
Staging: rtl8192e: Remove unnecessary braces from MgntQuery_MgntFrameTxRate()
Remove braces from if statement to fix checkpatch WARNING: 'braces {} are not necessary for single statement blocks' Signed-off-by: Tree Davies <tdavies@darkphysics.net> Link: https://lore.kernel.org/r/20231223015942.418263-2-tdavies@darkphysics.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent b249bed commit 1aa721a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/staging/rtl8192e/rtllib_softmac.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,8 @@ static u8 MgntQuery_MgntFrameTxRate(struct rtllib_device *ieee)
172172
else
173173
rate = ieee->basic_rate & 0x7f;
174174

175-
if (rate == 0) {
175+
if (rate == 0)
176176
rate = 0x02;
177-
}
178177

179178
return rate;
180179
}

0 commit comments

Comments
 (0)