Re: [patch] paride: fix a return in pd_detect()

2015-08-13 Thread Sudip Mukherjee
On Thu, Aug 13, 2015 at 12:08:43AM +0300, Dan Carpenter wrote: > In this function returning non-zero means the hardware was detected and > zero means it wasn't. This is a failure path so we should return zero. > > Fixes: 9f4ba6b05869 ('paride: use new parport device model') > Signed-off-by: Dan C

[patch] paride: fix a return in pd_detect()

2015-08-12 Thread Dan Carpenter
In this function returning non-zero means the hardware was detected and zero means it wasn't. This is a failure path so we should return zero. Fixes: 9f4ba6b05869 ('paride: use new parport device model') Signed-off-by: Dan Carpenter diff --git a/drivers/block/paride/pd.c b/drivers/block/paride/