]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc5a0db2b235741001072fb3810db74c7c19dec8e
treec27c29dbc4915a593b14e0292a0049cbaf203e38
parented2ba3c6e787c7e865496f5a08a72b93308e3f47
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