Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nfp: cast sizeof() to int when comparing with error code
sizeof() will return unsigned value so in the error check negative error code will be always larger than sizeof(). Fixes: a0d8e02 ("nfp: add support for reading nffw info") Signed-off-by: Chengguang Xu <[email protected]> Acked-by: Jakub Kicinski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information