generic: platform/mikrotik: fix incorrect test
authorThibaut VARÈNE <hacks@slashdirt.org>
Tue, 18 Aug 2020 09:57:31 +0000 (11:57 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Tue, 18 Aug 2020 16:22:33 +0000 (18:22 +0200)
commitd8ecaef409517c3c09381bee648e7beb35ae4329
treec127909387e103b9f723c1c270ea61abfd7880c3
parent008db6b970613d291b245d95734e3e42b5455f6c
generic: platform/mikrotik: fix incorrect test

The test is meant to check the result of the preceding kmalloc()

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
(cherry picked from commit d0498872ff71a79f0676cfc6b6b547c499bff712)
target/linux/generic/files/drivers/platform/mikrotik/rb_hardconfig.c