ath79: ag71xx: unify version dependent code
authorDavid Bauer <mail@david-bauer.net>
Mon, 27 Apr 2020 10:18:09 +0000 (12:18 +0200)
committerDavid Bauer <mail@david-bauer.net>
Mon, 27 Apr 2020 10:21:45 +0000 (12:21 +0200)
commitc76046991830ee6d61594acb51884bd2ef8bebc8
tree057ff1f8b5627a350d5343cccb67d3b1ade76fa6
parent5358d8b995f7aa52e16dd45cef082fc9983c8b39
ath79: ag71xx: unify version dependent code

Use IS_ERR_OR_NULL macro to use the same code on kernel 4.19 as well as
5.4.

Signed-off-by: David Bauer <mail@david-bauer.net>
target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c