[PATCH 4.17 128/324] nfp: cast sizeof() to int when comparing with error code