[PATCH 4.14 100/217] nfp: cast sizeof() to int when comparing with error code