[PATCH v2] stmmac: fix pointer check after utilization in stmmac_interrupt

2020-05-03 Thread Maxim Petrov
. Remove the check to avoid confusing people with incorrect code. Signed-off-by: Maxim Petrov --- Changes in V2: * Remove the incorrect check instead of fixing it (suggested by David Miller) * Add clarification to the function description drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 7

[PATCH] stmmac: fix pointer check after utilization in stmmac_interrupt

2020-05-02 Thread Maxim Petrov
compilers are free to remove the pointer check at all. Signed-off-by: Maxim Petrov --- .../net/ethernet/stmicro/stmmac/stmmac_main.c | 20 +++ 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet