Re: [RFCv4 04/24] ohci: no conditional debugging in root hub hadling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2013-11-14 at 11:44 -0500, Alan Stern wrote:
> On Thu, 14 Nov 2013 oliver@xxxxxxxxxx wrote:
> 
> > From: Oliver Neukum <oneukum@xxxxxxx>
> > 
> > With dynamic debugging the selection is done in user space
> > 
> > Signed-off-by: Oliver Neukum <oneukum@xxxxxxx>
> > ---
> >  drivers/usb/host/ohci-hub.c | 5 +----
> >  1 file changed, 1 insertion(+), 4 deletions(-)
> > 
> > diff --git a/drivers/usb/host/ohci-hub.c b/drivers/usb/host/ohci-hub.c
> > index 61705a7..953821e 100644
> > --- a/drivers/usb/host/ohci-hub.c
> > +++ b/drivers/usb/host/ohci-hub.c
> > @@ -725,10 +725,7 @@ static int ohci_hub_control (
> >  		temp = roothub_portstatus (ohci, wIndex);
> >  		put_unaligned_le32(temp, buf);
> >  
> > -#ifndef	OHCI_VERBOSE_DEBUG
> > -	if (*(u16*)(buf+2))	/* only if wPortChange is interesting */
> > -#endif
> > -		dbg_port (ohci, "GetStatus", wIndex, temp);
> > +		dbg_port(ohci, "GetStatus", wIndex, temp);
> >  		break;
> 
> I think it would be better to keep the "if" statement always.  We don't 
> care about port status checks when there hasn't been any status change.

OK

	Regards
		Oliver



--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux