commit | 2c855d73f2f6107f5b8ebc45f8b934bf7f4419e0 | [log] [tgz] |
---|---|---|
author | Kees Cook <keescook@chromium.org> | Thu Nov 14 21:07:12 2019 -0800 |
committer | David S. Miller <davem@davemloft.net> | Sat Nov 16 12:50:57 2019 -0800 |
tree | 89c0f3214308c9bc3379b560cf3b6cc847d9b1ea | |
parent | 86c1fe8857afb379522fd8dabce9d348672c31c1 [diff] |
bnx2x: Remove read_status_t function casts The function casts for .read_status callbacks end up casting some int return values to u8. This seems to be bug-prone (-EINVAL being returned into something that appears to be true/false), but fixing the function prototypes doesn't change the existing behavior. Fix the return values to remove the casts. Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: David S. Miller <davem@davemloft.net>