[PATCH] staging/rtl8723bs/core: Remove redundant call to memset

2019-06-15 Thread Hariprasad Kelam
rtw_zmalloc is doing memset . So there is no need to call memset again. Signed-off-by: Hariprasad Kelam --- drivers/staging/rtl8723bs/core/rtw_mlme.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme.c b/drivers/staging/rtl8723bs/core/rtw_mlme.c index

[PATCH] staging/rtl8723bs/core/rtw_ap: Remove redundant call to memset

2019-06-15 Thread Hariprasad Kelam
rtw_zmalloc is internally doing memset . So there is no need to call memset again. Signed-off-by: Hariprasad Kelam --- drivers/staging/rtl8723bs/core/rtw_ap.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_ap.c b/drivers/staging/rtl8723bs/core/rtw_ap.c

[PATCH] staging: rtl8723bs: os_dep: Make use rtw_zmalloc

2019-06-15 Thread Hariprasad Kelam
rtw_malloc with memset can be replaced with rtw_zmalloc. Signed-off-by: Hariprasad Kelam --- drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c b/drivers/staging/rtl8723bs

[PATCH] staging: rtl8723bs: os_dep: ioctl_linux: Make use rtw_zmalloc

2019-06-15 Thread Hariprasad Kelam
rtw_malloc with memset can be replace with rtw_zmalloc. Signed-off-by: Hariprasad Kelam --- drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c b/drivers/staging/rtl8723bs

[PATCH] staging: rtl8723bs: core: fix warning Comparison to NULL

2019-05-30 Thread Hariprasad Kelam
this patch fixes "Comparison to NULL" warnings reported by checkpatch Signed-off-by: Hariprasad Kelam --- drivers/staging/rtl8723bs/core/rtw_xmit.c | 54 +++ 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw

[PATCH] scsi: dpt_i2o: Remove call memset after dma_alloc_coherent

2019-05-30 Thread Hariprasad Kelam
ned-off-by: Hariprasad Kelam --- drivers/scsi/dpt_i2o.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/scsi/dpt_i2o.c b/drivers/scsi/dpt_i2o.c index a3afd14..128d4f9 100644 --- a/drivers/scsi/dpt_i2o.c +++ b/drivers/scsi/dpt_i2o.c @@ -1334,7 +1334,6 @@ static s32 adpt_i2o_reset_

[PATCH] scsi: pmcraid: Remove call to memset after dma_alloc_coherent

2019-05-30 Thread Hariprasad Kelam
This patch fixes below warning reported by coccicheck ./drivers/scsi/pmcraid.c:4728:3-21: WARNING: dma_alloc_coherent use in pinstance -> hrrq_start [ i ] already zeroes out memory, so memset is not needed Signed-off-by: Hariprasad Kelam --- drivers/scsi/pmcraid.c | 2 -- 1 file changed

[PATCH] staging: rtl8723bs: hal: fix error "do not initialise globals to 0"

2019-06-03 Thread Hariprasad Kelam
this patch fixes below Errors reported by checkpatch ERROR: do not initialise globals to 0 +u8 g_fwdl_chksum_fail = 0; ERROR: do not initialise globals to 0 +u8 g_fwdl_wintint_rdy_fail = 0; Signed-off-by: Hariprasad Kelam --- drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c | 4 ++-- 1 file

[PATCH] Staging: emxx_udc: fix warning "sum of probable bitmasks, consider |"

2019-06-03 Thread Hariprasad Kelam
Knowing the fact that operator '|' is faster than '+'. Its better we replace + with | in this case. Issue reported by coccicheck drivers/staging/emxx_udc/emxx_udc.h:94:34-35: WARNING: sum of probable bitmasks, consider | Signed-off-by: Hariprasad Kelam --- drivers/staging

<    1   2   3   4