[PATCH] staging: drm/imx: fix return value check in imx_drm_init()

2013-10-25 Thread Wei Yongjun
From: Wei Yongjun In case of error, the function platform_device_register_simple() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Wei Yongjun --- drivers/staging/imx-drm/imx-drm-core.c | 4 ++-- 1 file changed,

Re: [PATCH v4 2/2] Staging: zram: Fix decrement of variable by calling bdput()

2013-10-25 Thread Minchan Kim
On Tue, Oct 22, 2013 at 07:04:37PM +0530, Rashika Kheria wrote: > As suggested by Jerome Marchand "The code in reset_store get the block device > (bdget_disk()) but it does not put it (bdput()) when it's done using it. > The usage count is therefor incremented but never decremented." > > Hence, th

Re: [PATCH v4 1/2] Staging: zram: Fix variable dereferenced before check

2013-10-25 Thread Minchan Kim
Hello Rashika, First of all, thanks for looking this! On Tue, Oct 22, 2013 at 07:00:57PM +0530, Rashika Kheria wrote: > This patch fixes the following Smatch warning in zram_drv.c- > drivers/staging/zram/zram_drv.c:663 > reset_store() warn: variable dereferenced before check 'bdev' (see line 652)

Re: [PATCH v4 2/2] Staging: zram: Fix decrement of variable by calling bdput()

2013-10-25 Thread Minchan Kim
Hey Rashika, And please Cc LKML in next. Thanks! On Fri, Oct 25, 2013 at 7:13 PM, Minchan Kim wrote: > On Tue, Oct 22, 2013 at 07:04:37PM +0530, Rashika Kheria wrote: >> As suggested by Jerome Marchand "The code in reset_store get the block device >> (bdget_disk()) but it does not put it (bdpu

Re: [PATCHv4 06/16] staging: usbip: Add proper error reporting

2013-10-25 Thread Dan Carpenter
On Sat, Oct 19, 2013 at 04:39:09PM +0200, Dominik Paulus wrote: > +const char *usbip_net_strerror(int status) > +{ > + static const char *const errs[] = { > + /* ERR_OK */ "Success", > + /* ERR_NA */ "Command failed", > + /* ERR_MISMATCH */ "Protocol version

Re: [PATCHv4 10/16] staging: usbip: TLS for all userspace communication

2013-10-25 Thread Dan Carpenter
On Sat, Oct 19, 2013 at 04:39:13PM +0200, Dominik Paulus wrote: > @@ -104,8 +105,10 @@ static int import_device(int sockfd, struct > usbip_usb_device *udev) > return -1; > } > > - rc = usbip_vhci_attach_device(port, sockfd, udev->busnum, > + usbip_net_bye(conn); > +

Re: [PATCHv4 12/16] staging: usbip: Pass session keys to the kernel

2013-10-25 Thread Dan Carpenter
On Sat, Oct 19, 2013 at 04:39:15PM +0200, Dominik Paulus wrote: > @@ -367,10 +367,17 @@ int usbip_host_export_device(struct > usbip_exported_device *edev, > return -1; > } > > - snprintf(sockfd_buff, sizeof(sockfd_buff), "%d\n", conf->sockfd); > - dbg("write: %s", soc

[PATCH 3/4] staging: lustre: Remove typedef and update cfs_hash_bd struct

2013-10-25 Thread Lisa Nguyen
Remove typedef keyword and rename the cfs_hash_bd_t struct to cfs_hash_bd in libcfs_hash.h. These changes resolve the "Do not add new typedefs" warning generated by checkpatch.pl and meet kernel coding style. Struct variables in other header and source files that depend on libcfs_hash.h are update

[PATCH 2/4] staging: lustre: Remove typedef and update cfs_debug_limit_state struct

2013-10-25 Thread Lisa Nguyen
Removed typedef keyword and rename the cfs_debug_limit_state_t struct to cfs_debug_limit_state in libcfs_debug.h. These changes resolve the "Do not add new typedefs" warning generated by checkpatch.pl and meet kernel coding style. Struct variables in other header and source files that depend on li

[PATCH 1/4] staging: lustre: Remove typedef and update cfs_hash_bucket struct

2013-10-25 Thread Lisa Nguyen
Remove typedef keyword and rename the cfs_hash_bucket_t struct to cfs_hash_bucket in libcfs_hash.h. These changes resolve the "Do not add new typedefs" warning generated by checkpatch.pl and meet kernel coding style. The struct variables in hash.c are updated to reflect this change as well. Signe

[PATCH 2/3] staging: lustre: lnet: Remove unnecessary () from return statements

2013-10-25 Thread Lisa Nguyen
Remove unnecessary parentheses from return statements in lib-lnet.h to meet kernel coding style. Signed-off-by: Lisa Nguyen --- drivers/staging/lustre/include/linux/lnet/lib-lnet.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/lustre/include/lin

[PATCH 3/3] staging: lustre: lnet: Reformat pointer variable in lib-lnet.h

2013-10-25 Thread Lisa Nguyen
Reformat a pointer variable in lib-lnet.h to meet kernel coding style and eliminate pointer format warning generated by checkpatch.pl Signed-off-by: Lisa Nguyen --- drivers/staging/lustre/include/linux/lnet/lib-lnet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/st

[PATCH 1/3] staging: lustre: lnet: Remove unnecessary spaces in lib-lnet.h

2013-10-25 Thread Lisa Nguyen
Remove spaces between function names and open parentheses to meet kernel coding style and eliminate extra space warnings generated by checkpatch.pl Signed-off-by: Lisa Nguyen --- .../staging/lustre/include/linux/lnet/lib-lnet.h | 78 +++--- 1 file changed, 39 insertions(+), 39

Re: [PATCH 3/4] staging: lustre: Remove typedef and update cfs_hash_bd struct

2013-10-25 Thread Dan Carpenter
This is for future reference, the current patch seems fine. On Fri, Oct 25, 2013 at 01:20:56PM -0700, Lisa Nguyen wrote: > --- a/drivers/staging/lustre/lustre/ldlm/ldlm_resource.c > +++ b/drivers/staging/lustre/lustre/ldlm/ldlm_resource.c > @@ -159,7 +159,7 @@ static int lprocfs_ns_resources_seq_s

[PATCH 10/11] Staging: bcm: Replace PVOID with void * in Adapter.h

2013-10-25 Thread Kevin McKinney
This patch replaces "PVOID" with "void *" in Adapter.h Signed-off-by: Kevin McKinney --- drivers/staging/bcm/Adapter.h | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/staging/bcm/Adapter.h b/drivers/staging/bcm/Adapter.h index 2074c18..c5891

[PATCH 03/11] Staging: bcm: Replace USHORT with unsigned short in Adapter.h

2013-10-25 Thread Kevin McKinney
This patch replace "USHORT" with "unsigned short" in Adapter.h Signed-off-by: Kevin McKinney --- drivers/staging/bcm/Adapter.h | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/staging/bcm/Adapter.h b/drivers/staging/bcm/Adapter.h in

[PATCH 05/11] Staging: bcm: Replace ULONG with unsigned long in Adapter.h

2013-10-25 Thread Kevin McKinney
This patch replace "ULONG" with "unsigned long" in Adapter.h Signed-off-by: Kevin McKinney --- drivers/staging/bcm/Adapter.h | 42 - 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/drivers/staging/bcm/Adapter.h b/drivers/staging/bcm/Adapt

[PATCH 08/11] Staging: bcm: Replace UINT32 with u32 in Adapter.h

2013-10-25 Thread Kevin McKinney
This patch replaces "UINT32" with "u32" in Adapter.h Signed-off-by: Kevin McKinney --- drivers/staging/bcm/Adapter.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/bcm/Adapter.h b/drivers/staging/bcm/Adapter.h index 27b5011..a34 100644 --- a/

[PATCH 09/11] Staging: bcm: Replace UINT with unsigned int in Adapter.h

2013-10-25 Thread Kevin McKinney
This patch replaces "UINT" with "unsigned int" in Adapter.h Signed-off-by: Kevin McKinney --- drivers/staging/bcm/Adapter.h | 84 - 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/drivers/staging/bcm/Adapter.h b/drivers/staging/bcm/Adapte

[PATCH 01/11] Staging: bcm: Fix WARNING: space prohibited before semicolon.

2013-10-25 Thread Kevin McKinney
This patch removes a space before semicolon as specified by checkpatch.pl. Signed-off-by: Kevin McKinney --- drivers/staging/bcm/Adapter.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/bcm/Adapter.h b/drivers/staging/bcm/Adapter.h index 1d8bf08..c2c0e6c 1

[PATCH 04/11] Staging: bcm: Replace UCHAR with unsigned char in Adapter.h

2013-10-25 Thread Kevin McKinney
This patch replace "UCHAR" with "unsigned char" in Adapter.h Signed-off-by: Kevin McKinney --- drivers/staging/bcm/Adapter.h | 82 - 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/drivers/staging/bcm/Adapter.h b/drivers/staging/bcm/Adapt

[PATCH 02/11] Staging: bcm: Remove typedef for _U_IP_ADDRESS and call directly.

2013-10-25 Thread Kevin McKinney
This patch removes typedef for _U_IP_ADDRESS, and changes the name of the struct to bcm_ip_address. In addition, any calls to struct "U_IP_ADDRESS" are changed to call directly. Signed-off-by: Kevin McKinney --- drivers/staging/bcm/Adapter.h |8 1 file changed, 4 insertions(+), 4 de

[PATCH 06/11] Staging: bcm: Replace B_UINT16 with u16 in Adapter.h

2013-10-25 Thread Kevin McKinney
This patch replace "B_UINT16" with "u16" in Adapter.h Signed-off-by: Kevin McKinney --- drivers/staging/bcm/Adapter.h |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/bcm/Adapter.h b/drivers/staging/bcm/Adapter.h index 4c9662b..fbd06a1 100644 --- a/drive

[PATCH 07/11] Staging: bcm: Replace B_UINT8 with u8 in Adapter.h

2013-10-25 Thread Kevin McKinney
This patch replaces "B_UINT8" with "u8" in Adapter.h Signed-off-by: Kevin McKinney --- drivers/staging/bcm/Adapter.h |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/bcm/Adapter.h b/drivers/staging/bcm/Adapter.h index fbd06a1..27b5011 100644 --- a/dr

[PATCH 11/11] Staging: bcm: Replace BOOLEAN with bool in Adapter.h

2013-10-25 Thread Kevin McKinney
This patch replaces "BOOLEAN" with "bool" in Adapter.h Signed-off-by: Kevin McKinney --- drivers/staging/bcm/Adapter.h | 122 - 1 file changed, 61 insertions(+), 61 deletions(-) diff --git a/drivers/staging/bcm/Adapter.h b/drivers/staging/bcm/Adapter.h i