OSDN Git Service

bnx2x: Remove format_fw_ver_t function casts
authorKees Cook <keescook@chromium.org>
Fri, 15 Nov 2019 05:07:14 +0000 (21:07 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 Nov 2019 20:50:57 +0000 (12:50 -0800)
commit26658f6bdb65ff192ff9b4b7ed9f3408d74ceeea
tree4dcdf6d182855569479de241275bd2a1191f93c0
parent3e19d1f2654ffd0e379c0f4ba30424bb57ed8acc
bnx2x: Remove format_fw_ver_t function casts

The return values for format_fw_ver_t callbacks are supposed to be
"int", not "u8". Ultimately, the top-level caller doesn't actually check
the return value at all, but just clean this all up anyway and fix the
prototypes so that casts are no longer needed.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.h