Skip to content

Commit 13dd84e

Browse files
committed
rtl8195am - fix lwip_intf.c warnings
Fix the following warning: [Warning] lwip_intf.c@134,5: this 'if' clause does not guard... [-Wmisleading-indentation] Signed-off-by: Tony Wu <[email protected]>
1 parent 8e4152c commit 13dd84e

File tree

1 file changed

+11
-10
lines changed
  • targets/TARGET_Realtek/TARGET_AMEBA/sdk/common/drivers/wlan/realtek/src/osdep

1 file changed

+11
-10
lines changed

targets/TARGET_Realtek/TARGET_AMEBA/sdk/common/drivers/wlan/realtek/src/osdep/lwip_intf.c

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -126,25 +126,26 @@ int rltk_wlan_send(int idx, struct eth_drv_sg *sg_list, int sg_len, int total_le
126126
void rltk_wlan_recv(int idx, struct eth_drv_sg *sg_list, int sg_len)
127127
{
128128
#if (CONFIG_LWIP_LAYER == 1)
129-
struct eth_drv_sg *last_sg;
129+
struct eth_drv_sg *last_sg;
130130
struct sk_buff *skb;
131131

132-
DBG_TRACE("%s is called", __FUNCTION__);
132+
DBG_TRACE("%s is called", __FUNCTION__);
133133

134-
if (!rltk_wlan_check_isup(idx))
134+
if (!rltk_wlan_check_isup(idx)) {
135135
return;
136+
}
136137

137-
if(idx == -1){
138-
DBG_ERR("skb is NULL");
139-
return;
140-
}
138+
if (idx == -1) {
139+
DBG_ERR("skb is NULL");
140+
return;
141+
}
141142

142143
skb = rltk_wlan_get_recv_skb(idx);
143-
DBG_ASSERT(skb, "No pending rx skb");
144+
DBG_ASSERT(skb, "No pending rx skb");
144145

145-
for (last_sg = &sg_list[sg_len]; sg_list < last_sg; ++sg_list) {
146+
for (last_sg = &sg_list[sg_len]; sg_list < last_sg; ++sg_list) {
146147
if (sg_list->buf != 0) {
147-
rtw_memcpy((void *)(sg_list->buf), skb->data, sg_list->len);
148+
rtw_memcpy((void *)(sg_list->buf), skb->data, sg_list->len);
148149
skb_pull(skb, sg_list->len);
149150
}
150151
}

0 commit comments

Comments
 (0)