[PATCH] NIU: fix incorrect error return, missed in previous revert