realtek: fix place of fdb/mdb info messages
authorINAGAKI Hiroshi <musashino.open@gmail.com>
Mon, 4 Apr 2022 12:57:43 +0000 (21:57 +0900)
committerSander Vanheule <sander@svanheule.net>
Sat, 8 Oct 2022 09:05:02 +0000 (11:05 +0200)
commitff307f52f54e643ff72b50012a012f3e4ab2f0bc
tree2e301e09a50009b3032bfe323d5a6ceb9d728c0e
parent3834e72fa3b632f819227bd2c564dc87ed0575fe
realtek: fix place of fdb/mdb info messages

Those messages should be printed when entry was found (idx >= 0). Move
them to the right place to not print invalid entry indices.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
[amden commit message]
Signed-off-by: Sander Vanheule <sander@svanheule.net>
target/linux/realtek/files-5.10/drivers/net/dsa/rtl83xx/dsa.c