[PATCH] net: stmmac: remove useless else if

2021-03-17 Thread Jay Fang
From: Junhao He Fix the following coccinelle report: kernel/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:233:6-8: WARNING : cond_no_effect : possible condition with no effect (if == else) Signed-off-by: Junhao He Signed-off-by: Jay Fang --- drivers/net/ethernet/stmicro/stmmac

[PATCH] net: ipa: Remove useless error message

2021-03-16 Thread Jay Fang
From: Zihao Tang Fix the following coccicheck report: drivers/net/ipa/gsi.c:1341:2-9: line 1341 is redundant because platform_get_irq() already prints an error Remove dev_err() messages after platform_get_irq_byname() failures. Signed-off-by: Zihao Tang Signed-off-by: Jay Fang --- drivers

[PATCH] staging: qlge : fix missing error codes

2021-03-14 Thread Jay Fang
From: Zihao Tang Fixes one smatch warnings: drivers/staging/qlge/qlge_main.c:4564 qlge_probe() warn: missing error code 'err' Reported-by: kernel test robot Reported-by: Dan Carpenter Signed-off-by: Zihao Tang Signed-off-by: Jay Fang --- drivers/staging/qlge/qlge_main.c | 4 ++