net: dsa: mv88e6xxx: hwtstamp: remove unnecessary range checking tests
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Fri, 16 Feb 2018 17:47:39 +0000 (11:47 -0600)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Feb 2018 16:12:24 +0000 (11:12 -0500)
commite21fed5864e408732653e0aa067b6669b7d88cda
treec27c29dbc4915a593b14e0292a0049cbaf203e38
parente3f9f41757f5ce1e95ef3bc3bfb72bbcdb23ece2
net: dsa: mv88e6xxx: hwtstamp: remove unnecessary range checking tests

_port_ is already known to be a valid index in the callers [1]. So
these checks are unnecessary.

[1] https://lkml.org/lkml/2018/2/16/469

Addresses-Coverity-ID: 1465287
Addresses-Coverity-ID: 1465291
Suggested-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/hwtstamp.c