Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit afe6e00c authored by Harish Patil's avatar Harish Patil Committed by David S. Miller
Browse files

qlge: Fix compilation warning



Fix the below warning message:
qlge_main.c:1754: warning: 'lbq_desc' may be used uninitialized in this function

Signed-off-by: default avatarHarish Patil <harish.patil@qlogic.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5f5316fc
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1922,7 +1922,7 @@ static struct sk_buff *ql_build_rx_skb(struct ql_adapter *qdev,
			sbq_desc->p.skb = NULL;
			sbq_desc->p.skb = NULL;
			skb_reserve(skb, NET_IP_ALIGN);
			skb_reserve(skb, NET_IP_ALIGN);
		}
		}
		while (length > 0) {
		do {
			lbq_desc = ql_get_curr_lchunk(qdev, rx_ring);
			lbq_desc = ql_get_curr_lchunk(qdev, rx_ring);
			size = (length < rx_ring->lbq_buf_size) ? length :
			size = (length < rx_ring->lbq_buf_size) ? length :
				rx_ring->lbq_buf_size;
				rx_ring->lbq_buf_size;
@@ -1939,7 +1939,7 @@ static struct sk_buff *ql_build_rx_skb(struct ql_adapter *qdev,
			skb->truesize += size;
			skb->truesize += size;
			length -= size;
			length -= size;
			i++;
			i++;
		}
		} while (length > 0);
		ql_update_mac_hdr_len(qdev, ib_mac_rsp, lbq_desc->p.pg_chunk.va,
		ql_update_mac_hdr_len(qdev, ib_mac_rsp, lbq_desc->p.pg_chunk.va,
				      &hlen);
				      &hlen);
		__pskb_pull_tail(skb, hlen);
		__pskb_pull_tail(skb, hlen);