staging: ks7010: change ETHER_HDR_SIZE definition to use the size of struct ether_hdr
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Fri, 6 Apr 2018 12:37:39 +0000 (14:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 12:27:35 +0000 (14:27 +0200)
commit7ba5800b0df6cc8a65b3db83fd7a2cb4426c2890
treee65d1917e0c76eb1b19c9ac2bdb2999fa0259fb3
parent2f90a43f8eed777dd1fa1977b9e62294c1ce2558
staging: ks7010: change ETHER_HDR_SIZE definition to use the size of struct ether_hdr

This commit changes ETHER_HDR_SIZE definition which is a hardcoded
number using the size of the structure ether_hdr which is the one
for what this definition has been created. This improves readability
and makes clear the intention of this definition along the code.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/eap_packet.h