[PATCH] b43: Remove redundant code

2021-01-28 Thread Abaci Team
Suggested-by: Jiapeng Zhong Signed-off-by: Abaci Team --- drivers/net/wireless/broadcom/b43/phy_n.c | 16 1 file changed, 16 deletions(-) diff --git a/drivers/net/wireless/broadcom/b43/phy_n.c b/drivers/net/wireless/broadcom/b43/phy_n.c index b669dff..39a335f 100644 --- a/drivers/net

[PATCH] drm/amd/display: Simplify bool conversion

2021-01-28 Thread Abaci Team
Fix the following coccicheck warning: ./drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c:3137:35-40: WARNING: conversion to bool not needed here Reported-by: Abaci Robot Suggested-by: Yang Li Signed-off-by: Abaci Team --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 2

[PATCH] bpf: Simplify bool conversion

2021-01-28 Thread Abaci Team
Fix the following coccicheck warning: ./tools/perf/builtin-script.c:2789:36-41: WARNING: conversion to bool not needed here ./tools/perf/builtin-script.c:3237:48-53: WARNING: conversion to bool not needed here Reported-by: Abaci Robot Suggested-by: Yang Li Signed-off-by: Abaci Team --- tools

[PATCH] kernfs: Remove redundant code

2021-01-28 Thread Abaci Team
Fix the following coccicheck warnings: ./fs/kernfs/file.c:647:1-3: WARNING: possible condition with no effect (if == else). Reported-by: Abaci Robot Suggested-by: Jiapeng Zhong Signed-off-by: Abaci Team --- fs/kernfs/file.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff

[PATCH] rtlwifi: halbtc8723b2ant: Remove redundant code

2021-01-27 Thread Abaci Team
Fix the following coccicheck warnings: ./drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c: 1876:11-13: WARNING: possible condition with no effect (if == else). Reported-by: Abaci Robot Suggested-by: Jiapeng Zhong Signed-off-by: Abaci Team --- .../realtek/rtlwifi/btcoexist

[PATCH] zram: remove redundant NULL check

2021-01-27 Thread Abaci Team
Fix below warnings reported by coccicheck: ./drivers/block/zram/zram_drv.c:534:2-8: WARNING: NULL check before some freeing functions is not needed. Reported-by: Abaci Robot Suggested-by: Yang Li Signed-off-by: Abaci Team --- drivers/block/zram/zram_drv.c | 3 +-- 1 file changed, 1 insertion

[PATCH] ARM: dma-mapping: remove redundant NULL check

2021-01-27 Thread Abaci Team
Fix below warnings reported by coccicheck: ./arch/arm/common/dmabounce.c:565:2-18: WARNING: NULL check before some freeing functions is not needed. Reported-by: Abaci Robot Suggested-by: Yang Li Signed-off-by: Abaci Team --- arch/arm/common/dmabounce.c | 6 ++ 1 file changed, 2 insertions

[PATCH] scsi: ufs: fix: NULL pointer dereference

2021-01-27 Thread Abaci Team
Fix below warnings reported by coccicheck: ./drivers/scsi/ufs/ufshcd.c:8990:11-17: ERROR: hba is NULL but dereferenced. Reported-by: Abaci Robot Suggested-by: Yang Li Signed-off-by: Abaci Team --- drivers/scsi/ufs/ufshcd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/ufs

[PATCH] PM: domains: Simplify the calculation of variables

2021-01-27 Thread Abaci Team
Fix the following coccicheck warnings: ./drivers/base/power/domain.c:938:31-33: WARNING !A || A && B is equivalent to !A || B. Reported-by: Abaci Robot Suggested-by: Jiapeng Zhong Signed-off-by: Abaci Team --- drivers/base/power/domain.c | 3 +-- 1 file changed, 1 insertion(+), 2 d

[PATCH] btrfs: Simplify the calculation of variables

2021-01-27 Thread Abaci Team
Fix the following coccicheck warnings: ./fs/btrfs/delayed-inode.c:1157:39-41: WARNING !A || A && B is equivalent to !A || B. Reported-by: Abaci Robot Suggested-by: Jiapeng Zhong Signed-off-by: Abaci Team --- fs/btrfs/delayed-inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(