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>
This commit is contained in:
Tree Davies 2023-12-22 17:59:23 -08:00 committed by Greg Kroah-Hartman
parent b249bedb76
commit 1aa721a464

View file

@ -172,9 +172,8 @@ static u8 MgntQuery_MgntFrameTxRate(struct rtllib_device *ieee)
else
rate = ieee->basic_rate & 0x7f;
if (rate == 0) {
if (rate == 0)
rate = 0x02;
}
return rate;
}