ar71xx/ag71xx_ar7240_get_port_link: fix off-by-one check on argument `port`
authorAlexander Couzens <lynxis@fe80.eu>
Sun, 11 Jun 2017 10:43:24 +0000 (12:43 +0200)
committerAlexander Couzens <lynxis@fe80.eu>
Sun, 11 Jun 2017 12:22:44 +0000 (14:22 +0200)
commitd18cb142d5dcdf112095d593b60b8c16c74e986b
treea08e8c8018b0ba2ab31cc707beeb44787f7ec1b4
parentfd952c7a83e5357f5dcab28c0bcaca756e27eaa0
ar71xx/ag71xx_ar7240_get_port_link: fix off-by-one check on argument `port`

Found-by: Coverity Scan #1329901
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_ar7240.c