tg3: Fix some checkpatch errors
This patch fixes the following checkpatch errors: ERROR: do not use assignment in if condition + if ((mss = skb_shinfo(skb)->gso_size) != 0) { ERROR: do not use assignment in if condition + if ((mss = skb_shinfo(skb)->gso_size) != 0) { ERROR: space prohibited after that '!' (ctx:BxW) + if (! netif_carrier_ok(tp->dev) && ^ ERROR: space required after that ',' (ctx:VxV) +#define GET_REG32_LOOP(base,len) \ ^ ERROR: "(foo*)" should be "(foo *)" + memcpy(data, ((char*)&val) + b_offset, b_count); ERROR: do not use assignment in if condition + if ((err = tg3_do_mem_test(tp, mem_tbl[i].offset, Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Reviewed-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
702e52ccd3
commit
be98da6a10
|
@ -5574,8 +5574,8 @@ static netdev_tx_t tg3_start_xmit(struct sk_buff *skb,
|
||||||
|
|
||||||
entry = tnapi->tx_prod;
|
entry = tnapi->tx_prod;
|
||||||
base_flags = 0;
|
base_flags = 0;
|
||||||
mss = 0;
|
mss = skb_shinfo(skb)->gso_size;
|
||||||
if ((mss = skb_shinfo(skb)->gso_size) != 0) {
|
if (mss) {
|
||||||
int tcp_opt_len, ip_tcp_len;
|
int tcp_opt_len, ip_tcp_len;
|
||||||
u32 hdrlen;
|
u32 hdrlen;
|
||||||
|
|
||||||
|
@ -5781,7 +5781,8 @@ static netdev_tx_t tg3_start_xmit_dma_bug(struct sk_buff *skb,
|
||||||
if (skb->ip_summed == CHECKSUM_PARTIAL)
|
if (skb->ip_summed == CHECKSUM_PARTIAL)
|
||||||
base_flags |= TXD_FLAG_TCPUDP_CSUM;
|
base_flags |= TXD_FLAG_TCPUDP_CSUM;
|
||||||
|
|
||||||
if ((mss = skb_shinfo(skb)->gso_size) != 0) {
|
mss = skb_shinfo(skb)->gso_size;
|
||||||
|
if (mss) {
|
||||||
struct iphdr *iph;
|
struct iphdr *iph;
|
||||||
u32 tcp_opt_len, hdr_len;
|
u32 tcp_opt_len, hdr_len;
|
||||||
|
|
||||||
|
@ -10585,8 +10586,8 @@ static int tg3_test_memory(struct tg3 *tp)
|
||||||
mem_tbl = mem_tbl_570x;
|
mem_tbl = mem_tbl_570x;
|
||||||
|
|
||||||
for (i = 0; mem_tbl[i].offset != 0xffffffff; i++) {
|
for (i = 0; mem_tbl[i].offset != 0xffffffff; i++) {
|
||||||
if ((err = tg3_do_mem_test(tp, mem_tbl[i].offset,
|
err = tg3_do_mem_test(tp, mem_tbl[i].offset, mem_tbl[i].len);
|
||||||
mem_tbl[i].len)) != 0)
|
if (err)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue