Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <b18007@students.iitmandi.ac.in>
Link: https://lore.kernel.org/r/20200729074541.1972-1-b18007@students.iitmandi.ac.in
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Ankit Baluni and committed by
Greg Kroah-Hartman
341a8f86 100a149f

+1 -2
+1 -2
drivers/staging/rtl8712/rtl871x_ioctl_linux.c
··· 238 238 /* parsing HT_CAP_IE */ 239 239 p = r8712_get_ie(&pnetwork->network.IEs[12], _HT_CAPABILITY_IE_, 240 240 &ht_ielen, pnetwork->network.IELength - 12); 241 - if (p && ht_ielen > 0) { 241 + if (p && ht_ielen > 0) 242 242 ht_cap = true; 243 - } 244 243 /* Add the protocol name */ 245 244 iwe.cmd = SIOCGIWNAME; 246 245 if (r8712_is_cckratesonly_included(pnetwork->network.rates)) {