Skip to content

Commit 341a8f8

Browse files
ankitbaluni123gregkh
authored andcommitted
Staging: rtl8712: Fixed a coding sytle issue
Removed braces for a 'if' condition as it contain only single line & there is no need for braces for such case according to coding style rules. Signed-off-by: Ankit Baluni <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 100a149 commit 341a8f8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/staging/rtl8712/rtl871x_ioctl_linux.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,8 @@ static char *translate_scan(struct _adapter *padapter,
238238
/* parsing HT_CAP_IE */
239239
p = r8712_get_ie(&pnetwork->network.IEs[12], _HT_CAPABILITY_IE_,
240240
&ht_ielen, pnetwork->network.IELength - 12);
241-
if (p && ht_ielen > 0) {
241+
if (p && ht_ielen > 0)
242242
ht_cap = true;
243-
}
244243
/* Add the protocol name */
245244
iwe.cmd = SIOCGIWNAME;
246245
if (r8712_is_cckratesonly_included(pnetwork->network.rates)) {

0 commit comments

Comments
 (0)