net: Simplify ptp class checks
authorStefan Sørensen <stefan.sorensen@spectralink.com>
Fri, 27 Jun 2014 09:59:09 +0000 (11:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Jul 2014 23:57:09 +0000 (16:57 -0700)
commitb9c701edc7ff6ddd522497b0194b0bc3ec1b51a9
treeeb4ba9bffe93c7b1ef94a9ad357bb180a4be4acd
parent239960d66425785affb92d745e3b29e3e9b51745
net: Simplify ptp class checks

Replace two switch statements enumerating all valid ptp classes with an if
statement matching for not PTP_CLASS_NONE.

Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/timestamping.c