On Thu, 18 Jun 2015 09:49:47 +0900
Taku Izumi <izumi.t...@jp.fujitsu.com> wrote:

> +static void fjes_get_ethtool_stats(struct net_device *netdev,
> +             struct ethtool_stats *stats, u64 *data)
> +{
> +     struct fjes_adapter *adapter = netdev_priv(netdev);
> +     int i;
> +     char *p = NULL;

Although harmless, this initialization is unnecessary.


> +     for (i = 0; i < ARRAY_SIZE(fjes_gstrings_stats); i++) {
> +             p = (char *)adapter + fjes_gstrings_stats[i].stat_offset;
> +             data[i] = (fjes_gstrings_stats[i].sizeof_stat == sizeof(u64))
> +                     ? *(u64 *)p : *(u32 *)p;
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to