]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6186eb6ab380646c5587c519f98139ad636e10b5
tree4dcdf6d182855569479de241275bd2a1191f93c0
parent988b23473a92dcab734ae046157ed4cbe0a730f8
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