re: net: fec: change data structure to support multiqueue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux