diff options
author | 2018-06-26 09:16:31 +0800 | |
---|---|---|
committer | 2018-06-27 15:36:32 +0900 | |
commit | 2d2595719a97c876f35b1e60e5768e58753b268c (patch) | |
tree | 5e6181ee6b05e5289bcb039d97a02063b9a7c9aa /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge branch 'nfp-MPLS-and-shared-blocks-TC-offload-fixes' (diff) | |
download | linux-rng-2d2595719a97c876f35b1e60e5768e58753b268c.tar.xz linux-rng-2d2595719a97c876f35b1e60e5768e58753b268c.zip |
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: a0d8e02c35ff ("nfp: add support for reading nffw info")
Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions