* re: net: fec: change data structure to support multiqueue
@ 2014-09-16 9:39 Dan Carpenter
2014-09-16 10:16 ` fugang.duan
0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2014-09-16 9:39 UTC (permalink / raw)
To: kernel-janitors
Hello Fugang Duan,
The patch 4d494cdc92b3: "net: fec: change data structure to support
multiqueue" from Sep 13, 2014, leads to the following static checker
warning:
drivers/net/ethernet/freescale/fec_main.c:1418 fec_enet_rx_queue()
warn: add curly braces? (if)
drivers/net/ethernet/freescale/fec_main.c
1413
1414 /* Extract the frame data without the VLAN header. */
1415 skb_copy_to_linear_data(skb, data, (2 * ETH_ALEN));
1416 if (vlan_packet_rcvd)
1417 payload_offset = (2 * ETH_ALEN) + VLAN_HLEN;
1418 skb_copy_to_linear_data_offset(skb, (2 * ETH_ALEN),
1419 data + payload_offset,
1420 pkt_len - 4 - (2 * ETH_ALEN));
The patch pushed this call to skb_copy_to_linear_data_offset() in one
indent level but didn't add curly braces. It's not clear to me if the
indenting was intentional or not.
1421
1422 skb->protocol = eth_type_trans(skb, ndev);
1423
regards,
dan carpenter
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: net: fec: change data structure to support multiqueue
2014-09-16 9:39 net: fec: change data structure to support multiqueue Dan Carpenter
@ 2014-09-16 10:16 ` fugang.duan
0 siblings, 0 replies; 2+ messages in thread
From: fugang.duan @ 2014-09-16 10:16 UTC (permalink / raw)
To: kernel-janitors
From: Dan Carpenter <dan.carpenter@oracle.com> Sent: Tuesday, September 16, 2014 5:40 PM
>To: Duan Fugang-B38611
>Cc: Duan Fugang-B38611; kernel-janitors@vger.kernel.org
>Subject: re: net: fec: change data structure to support multiqueue
>
>Hello Fugang Duan,
>
>The patch 4d494cdc92b3: "net: fec: change data structure to support
>multiqueue" from Sep 13, 2014, leads to the following static checker
>warning:
>
> drivers/net/ethernet/freescale/fec_main.c:1418 fec_enet_rx_queue()
> warn: add curly braces? (if)
>
>drivers/net/ethernet/freescale/fec_main.c
> 1413
> 1414 /* Extract the frame data without the VLAN
>header. */
> 1415 skb_copy_to_linear_data(skb, data, (2 *
>ETH_ALEN));
> 1416 if (vlan_packet_rcvd)
> 1417 payload_offset = (2 * ETH_ALEN) +
>VLAN_HLEN;
> 1418 skb_copy_to_linear_data_offset(skb,
>(2 * ETH_ALEN),
> 1419 data +
>payload_offset,
> 1420 pkt_len - 4
>- (2 * ETH_ALEN));
>
>The patch pushed this call to skb_copy_to_linear_data_offset() in one
>indent level but didn't add curly braces. It's not clear to me if the
>indenting was intentional or not.
>
> 1421
> 1422 skb->protocol = eth_type_trans(skb, ndev);
> 1423
>
>regards,
>dan carpenter
Hi, Dan,
Thanks for your point out the issue, I will submit one patch to fix it.
It just indent issue.
Thanks,
Andy
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-09-16 10:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-16 9:39 net: fec: change data structure to support multiqueue Dan Carpenter
2014-09-16 10:16 ` fugang.duan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.