Re: [PATCH] ethernet: fix checkpatch errors

From: David Miller
Date: Tue Apr 17 2012 - 22:51:25 EST


From: Laura Vasilescu <laura@xxxxxxxxxx>
Date: Tue, 17 Apr 2012 17:27:24 +0300

> Signed-off-by: Laura Vasilescu <laura@xxxxxxxxxx>

I'd rather have the checkpath errors than what we end up with
your changes:

> - else if (1 /*dev->flags&IFF_PROMISC */ ) {
> - if (unlikely(compare_ether_addr_64bits(eth->h_dest, dev->dev_addr)))
> + else if (1 /*dev->flags&IFF_PROMISC */) {
> + if (unlikely(compare_ether_addr_64bits(eth->h_dest,
> + dev->dev_addr)))

This indentation is wrong, the "dev->dev_addr" argument must line up
with the first column after the openning parenthesis on the previous
line.

> -int eth_header_cache(const struct neighbour *neigh, struct hh_cache *hh, __be16 type)
> +int eth_header_cache(const struct neighbour *neigh,
> + struct hh_cache *hh,
> + __be16 type)

Same problem here for hh and type args.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/