net/bnx2x: do not cast function pointers as a policy
authorAndy Green <andy@warmcat.com>
Mon, 14 May 2018 05:04:28 +0000 (13:04 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 15 May 2018 20:25:17 +0000 (22:25 +0200)
commitd88b346d9a75c7ec6c4c973e16920e5e5161bab9
tree336741867882c263317a00b06f6421d76c0b200c
parent460354cd4ede8e8cf27710d645524caeecf49b47
net/bnx2x: do not cast function pointers as a policy

This is stopping the compiler telling you when you have
done something stupid... that is something none of us
can afford...

Now gcc 8.x can tell you did something stupid despite
trying to hide the evidence.

Remove all the "black magic" casts.

Fix the actual problems.

Fixes: b5bf7719221d ("bnx2x: driver support routines")
Cc: stable@dpdk.org
Signed-off-by: Andy Green <andy@warmcat.com>
Acked-by: Rasesh Mody <rasesh.mody@cavium.com>
drivers/net/bnx2x/elink.c