[PATCH 1/2] Staging: silicom: Remove unnecessary variable from do_cmd()

2013-11-07 Thread Rupert Muchembled
Remove unnecessary variable ioctl from do_cmd(). As a consequence, this patch removes an assignment to ioctl in an if condition, reported by checkpatch.pl. Signed-off-by: Rupert Muchembled --- drivers/staging/silicom/bypasslib/bypass.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)

[PATCH 2/2] Staging: silicom: Remove unnecessary variable from get_bypass_info()

2013-11-07 Thread Rupert Muchembled
Remove unnecessary variable ioctl from get_bypass_info(). As a consequence, this patch removes an assignment to ioctl in an if condition, reported by checkpatch.pl. Signed-off-by: Rupert Muchembled --- drivers/staging/silicom/bypasslib/bypass.c | 8 1 file changed, 4 insertions(+), 4 d

Re: [PATCH 3/3] vme_user: Remove superfluous bus module parameter

2013-11-07 Thread Martyn Welch
On 07/11/13 15:25, Aaron Sierra wrote: >> From: "Martyn Welch" >>> This patch removes the bus parameter since its primary function in >>> practice is to prevent the driver from registering itself with the VME >>> subsystem entirely unless some (any) value is passed via the parameter. >>> >>> The b

Re: [PATCH] block: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO

2013-11-07 Thread Jens Axboe
On 11/06/2013 12:55 AM, Duan Jiong wrote: > This patch fixes coccinelle error regarding usage of IS_ERR and > PTR_ERR instead of PTR_ERR_OR_ZERO. Applied, thanks. -- Jens Axboe ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linux

Re: [PATCH] block: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO

2013-11-07 Thread Jens Axboe
On 11/06/2013 12:56 AM, Duan Jiong wrote: > This patch fixes coccinelle error regarding usage of IS_ERR and > PTR_ERR instead of PTR_ERR_OR_ZERO. Applied, thanks. -- Jens Axboe ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linux

Re: [PATCH 3/3] vme_user: Remove superfluous bus module parameter

2013-11-07 Thread Aaron Sierra
> From: "Martyn Welch" > > This patch removes the bus parameter since its primary function in > > practice is to prevent the driver from registering itself with the VME > > subsystem entirely unless some (any) value is passed via the parameter. > > > > The bus module parameter seems to be provide

Re: [PATCH 1/3] vme_user: Ensure driver compiles after VME bridges

2013-11-07 Thread Martyn Welch
On 05/11/13 20:58, Aaron Sierra wrote: > - Original Message - >> From: "Martyn Welch" >> Subject: Re: [PATCH 1/3] vme_user: Ensure driver compiles after VME bridges >> >> On 05/11/13 17:53, Aaron Sierra wrote: >>> Martyn, >>> Can you please elaborate on why you feel it is not a fix? For in

Re: [RESEND PATCH 2/2] staging/olpc_docn: reorder the lock sequence to avoid potential dead lock

2013-11-07 Thread Dan Carpenter
On Wed, Nov 06, 2013 at 09:22:36AM +0800, Gu Zheng wrote: > Hi Dan, > On 11/05/2013 07:02 PM, Dan Carpenter wrote: > > > On Tue, Nov 05, 2013 at 06:01:00PM +0800, Gu Zheng wrote: > >> The lock sequence of dcon_blank_fb(fb_info->lock ---> console_lock) is > >> against > >> with the one of console_

[patch v2] staging: nvec: potential NULL dereference on error path

2013-11-07 Thread Dan Carpenter
We assume nvec->rx can be NULL earlier so I have added a check here as well. Signed-off-by: Dan Carpenter --- v2: print 0 instead of -1. diff --git a/drivers/staging/nvec/nvec.c b/drivers/staging/nvec/nvec.c index 3066ee2..c64e069 100644 --- a/drivers/staging/nvec/nvec.c +++ b/drivers/staging/nv

Re: [patch] staging: nvec: potential NULL dereference on error path

2013-11-07 Thread Dan Carpenter
On Thu, Nov 07, 2013 at 12:10:14PM +0100, Julian Andres Klode wrote: > (Replying to all now) > > On Thu, Nov 7, 2013 at 8:54 AM, Dan Carpenter > wrote: > > We assume nvec->rx can be NULL earlier so I have added a check here as > > well. > > > > Signed-off-by: Dan Carpenter > > > > diff --git a/

Re: [patch] staging: nvec: potential NULL dereference on error path

2013-11-07 Thread Julian Andres Klode
(Replying to all now) On Thu, Nov 7, 2013 at 8:54 AM, Dan Carpenter wrote: > We assume nvec->rx can be NULL earlier so I have added a check here as > well. > > Signed-off-by: Dan Carpenter > > diff --git a/drivers/staging/nvec/nvec.c b/drivers/staging/nvec/nvec.c > index 3066ee2..c64e069 100644

Re: [patch] Staging: comedi: pcl730: fix some bitwise vs logical AND bugs

2013-11-07 Thread Ian Abbott
On 2013-11-07 08:13, Dan Carpenter wrote: These conditions are never true because they use bitwise AND instead of logical ands. Fixes: b3ff824a81e8 ('staging: comedi: drivers: use comedi_dio_update_state() for complex cases') Signed-off-by: Dan Carpenter diff --git a/drivers/staging/comedi/dr

Re: [PATCH 3/3] vme_user: Remove superfluous bus module parameter

2013-11-07 Thread Martyn Welch
On 31/10/13 23:47, Aaron Sierra wrote: > This patch removes the bus parameter since its primary function in > practice is to prevent the driver from registering itself with the VME > subsystem entirely unless some (any) value is passed via the parameter. > > The bus module parameter seems to be pr

Re: [patch] Staging: vt6655-6: potential NULL dereference in hostap_disable_hostapd()

2013-11-07 Thread Waskiewicz Jr, Peter P
On Thu, 2013-11-07 at 10:55 +0300, Dan Carpenter wrote: > We fixed this to use free_netdev() instead of kfree() but unfortunately > free_netdev() doesn't accept NULL pointers. Smatch complains about > this, it's not something I discovered through testing. Wouldn't a better approach be to change f

[patch] Staging: comedi: pcl730: fix some bitwise vs logical AND bugs

2013-11-07 Thread Dan Carpenter
These conditions are never true because they use bitwise AND instead of logical ands. Fixes: b3ff824a81e8 ('staging: comedi: drivers: use comedi_dio_update_state() for complex cases') Signed-off-by: Dan Carpenter diff --git a/drivers/staging/comedi/drivers/pcl730.c b/drivers/staging/comedi/dri

Re: [PATCH] smsc: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO

2013-11-07 Thread David Miller
From: Duan Jiong Date: Wed, 6 Nov 2013 15:57:17 +0800 > This patch fixes coccinelle error regarding usage of IS_ERR and > PTR_ERR instead of PTR_ERR_OR_ZERO. > > Signed-off-by: Duan Jiong Applied. ___ devel mailing list de...@linuxdriverproject.org h

Re: [PATCH] net:drivers/net: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO

2013-11-07 Thread David Miller
From: Duan Jiong Date: Wed, 6 Nov 2013 15:58:13 +0800 > This patch fixes coccinelle error regarding usage of IS_ERR and > PTR_ERR instead of PTR_ERR_OR_ZERO. > > Signed-off-by: Duan Jiong Applied. ___ devel mailing list de...@linuxdriverproject.org h