staging: rtl8712: fixed coding style issues
Fixed some style and format issues with code. Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
0593758e4b
commit
2657c30e23
6 changed files with 21 additions and 14 deletions
|
@ -291,7 +291,8 @@ static inline char *translate_scan(struct _adapter *padapter,
|
||||||
memset(buf, 0, MAX_WPA_IE_LEN);
|
memset(buf, 0, MAX_WPA_IE_LEN);
|
||||||
n = sprintf(buf, "wpa_ie=");
|
n = sprintf(buf, "wpa_ie=");
|
||||||
for (i = 0; i < wpa_len; i++) {
|
for (i = 0; i < wpa_len; i++) {
|
||||||
n += snprintf(buf + n, MAX_WPA_IE_LEN - n, "%02x", wpa_ie[i]);
|
n += snprintf(buf + n, MAX_WPA_IE_LEN - n,
|
||||||
|
"%02x", wpa_ie[i]);
|
||||||
if (n >= MAX_WPA_IE_LEN)
|
if (n >= MAX_WPA_IE_LEN)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -310,7 +311,8 @@ static inline char *translate_scan(struct _adapter *padapter,
|
||||||
memset(buf, 0, MAX_WPA_IE_LEN);
|
memset(buf, 0, MAX_WPA_IE_LEN);
|
||||||
n = sprintf(buf, "rsn_ie=");
|
n = sprintf(buf, "rsn_ie=");
|
||||||
for (i = 0; i < rsn_len; i++) {
|
for (i = 0; i < rsn_len; i++) {
|
||||||
n += snprintf(buf + n, MAX_WPA_IE_LEN - n, "%02x", rsn_ie[i]);
|
n += snprintf(buf + n, MAX_WPA_IE_LEN - n,
|
||||||
|
"%02x", rsn_ie[i]);
|
||||||
if (n >= MAX_WPA_IE_LEN)
|
if (n >= MAX_WPA_IE_LEN)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -217,7 +217,10 @@ static u32 get_bb_reg(struct _adapter *pAdapter, u16 offset, u32 bitmask)
|
||||||
return new_value;
|
return new_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
static u8 set_bb_reg(struct _adapter *pAdapter, u16 offset, u32 bitmask, u32 value)
|
static u8 set_bb_reg(struct _adapter *pAdapter,
|
||||||
|
u16 offset,
|
||||||
|
u32 bitmask,
|
||||||
|
u32 value)
|
||||||
{
|
{
|
||||||
u32 org_value, bit_shift, new_value;
|
u32 org_value, bit_shift, new_value;
|
||||||
|
|
||||||
|
|
|
@ -307,9 +307,9 @@ static sint recv_decache(union recv_frame *precv_frame, u8 bretry,
|
||||||
return _SUCCESS;
|
return _SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static sint sta2sta_data_frame(struct _adapter *adapter, union recv_frame *precv_frame,
|
static sint sta2sta_data_frame(struct _adapter *adapter,
|
||||||
struct sta_info **psta
|
union recv_frame *precv_frame,
|
||||||
)
|
struct sta_info **psta)
|
||||||
{
|
{
|
||||||
u8 *ptr = precv_frame->u.hdr.rx_data;
|
u8 *ptr = precv_frame->u.hdr.rx_data;
|
||||||
sint ret = _SUCCESS;
|
sint ret = _SUCCESS;
|
||||||
|
@ -373,7 +373,8 @@ static sint sta2sta_data_frame(struct _adapter *adapter, union recv_frame *precv
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static sint ap2sta_data_frame(struct _adapter *adapter, union recv_frame *precv_frame,
|
static sint ap2sta_data_frame(struct _adapter *adapter,
|
||||||
|
union recv_frame *precv_frame,
|
||||||
struct sta_info **psta)
|
struct sta_info **psta)
|
||||||
{
|
{
|
||||||
u8 *ptr = precv_frame->u.hdr.rx_data;
|
u8 *ptr = precv_frame->u.hdr.rx_data;
|
||||||
|
@ -431,7 +432,8 @@ static sint ap2sta_data_frame(struct _adapter *adapter, union recv_frame *precv_
|
||||||
return _SUCCESS;
|
return _SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static sint sta2ap_data_frame(struct _adapter *adapter, union recv_frame *precv_frame,
|
static sint sta2ap_data_frame(struct _adapter *adapter,
|
||||||
|
union recv_frame *precv_frame,
|
||||||
struct sta_info **psta)
|
struct sta_info **psta)
|
||||||
{
|
{
|
||||||
struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib;
|
struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib;
|
||||||
|
|
Loading…
Add table
Reference in a new issue