net/qede/base: refactor return path