net/nfp: fix checking function return value