[PATCH] include/linux/types.h: use "unsigned int" instead of "unsigned"

2019-02-28 Thread WangBo
Use "unsigned int" instead of "unsigned" ,it make code more clear. Signed-off-by: WangBo --- include/linux/types.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/types.h b/include/linux/types.h index c2615d6..cc0dbbe 100644 --- a/i

[PATCH] ARM: dmabounce: NULL check before some freeing functions is

2019-02-26 Thread WangBo
The function dma_pool_destroy(NULL) is safe, so removes NULL check before freeing the mem. This patch also fix the ifnullfree.cocci warnings. Signed-off-by: WangBo --- arch/arm/common/dmabounce.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm/common

[PATCH] pinctrl: nomadik: fix possible object reference leak

2019-02-15 Thread WangBo
The of_find_device_by_node takes a reference to the struct device when find the match device ,we should release it when fail. Signed-off-by: WangBo --- drivers/pinctrl/nomadik/pinctrl-nomadik.c | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/drivers

[PATCH] pvcalls-front: Replace GFP_KERNEL with GFP_ATOMIC in create_active

2019-01-14 Thread wangbo
Create_active may called inside spinlock,replace GFP_KERNEL with GFP_ATOMIC Signed-off-by: wangbo --- drivers/xen/pvcalls-front.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/xen/pvcalls-front.c b/drivers/xen/pvcalls-front.c index 77224d8..31bd3c9 100644 --- a

[PATCH] scsi: wd719x Replace GFP_KERNEL with GFP_ATOMIC in wd719x_chip_init

2019-01-14 Thread wangbo
wd719x_host_reset get spinlock first then call wd719x_chip_init, so replace GFP_KERNEL with GFP_ATOMIC in wd719x_chip_init. Signed-off-by: wangbo --- drivers/scsi/wd719x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/wd719x.c b/drivers/scsi/wd719x.c index

[PATCH] mmc:sdio: Remove unneeded variable ret

2019-01-09 Thread wangbo
In sdio_bus_remove the variable is unneeded,remove it now. Signed-off-by: wangbo --- drivers/mmc/core/sdio_bus.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mmc/core/sdio_bus.c b/drivers/mmc/core/sdio_bus.c index b6d8203..62b0f5e 100644 --- a/drivers/mmc/core

[PATCH] uio:remove unneeded variable ret

2019-01-09 Thread wangbo
In uio_dmem_genirq_open the variable ret is unneededw,remove it now. Signed-off-by: wangbo --- drivers/uio/uio_dmem_genirq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/uio/uio_dmem_genirq.c b/drivers/uio/uio_dmem_genirq.c index 003bada..2be7569 100644 --- a

[PATCH] NFC: fdp: Use signed max_size to catch fail

2019-01-07 Thread wangbo
The variable max_size's type is unsigned char,can not catch error number, change it to signed int. Signed-off-by: wangbo --- drivers/nfc/fdp/fdp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/nfc/fdp/fdp.c b/drivers/nfc/fdp/fdp.c index d5784a4..ba32a59 1

[PATCH] KVM: PPC: Book3S: Replace kmalloc_node+memset with kzalloc_node

2019-01-07 Thread wangbo
Replace kmalloc_node and memset with kzalloc_node Signed-off-by: wangbo --- arch/powerpc/kvm/book3s_hv.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/powerpc/kvm/book3s_hv.c b/arch/powerpc/kvm/book3s_hv.c index 5a066fc..27112b7 100644 --- a/arch/powerpc/kvm

[PATCH] spi: imx: Update MODULE_DESCRIPTION to "SPI Controller driver"

2018-04-12 Thread wangbo
Now i.MX SPI controller can work in Slave mode. Update MODULE_DESCRIPTION to "SPI Controller driver". Signed-off-by: wangbo --- drivers/spi/spi-imx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c index 6f57592..a056