Commit d2890dea authored by Committed by David S. Miller
qede: Fix the static checker warnings.
Static checker warnings: drivers/net/ethernet/qlogic/qede/qede_ethtool.c:435 qede_get_coalesce() warn: passing casted pointer '&coal->rx_coalesce_usecs' to 'edev->ops->common->get_coalesce()' 32 vs 16. The u32 pointer is being typecasted to u16 which may fail for big-endian platforms. Fixes: d552fa84 ("qede: Add support for coalescing config read/update.") Reported-by: Dan Carpenter <email@example.com> Signed-off-by: Sudarsana Reddy Kalluru <firstname.lastname@example.org> Signed-off-by: David S. Miller <email@example.com>
Showing with 5 additions and 3 deletions