Loading drivers/usb/class/usblp.c +185 −186 Original line number Diff line number Diff line Loading @@ -169,7 +169,8 @@ struct usblp { }; #ifdef DEBUG static void usblp_dump(struct usblp *usblp) { static void usblp_dump(struct usblp *usblp) { int p; dbg("usblp=0x%p", usblp); Loading Loading @@ -254,9 +255,8 @@ static int usblp_ctrl_msg(struct usblp *usblp, int request, int type, int dir, i /* High byte has the interface index. Low byte has the alternate setting. */ if ((request == USBLP_REQ_GET_ID) && (type == USB_TYPE_CLASS)) { if ((request == USBLP_REQ_GET_ID) && (type == USB_TYPE_CLASS)) index = (usblp->ifnum<<8)|usblp->protocol[usblp->current_protocol].alt_setting; } retval = usb_control_msg(usblp->dev, dir ? usb_rcvctrlpipe(usblp->dev, 0) : usb_sndctrlpipe(usblp->dev, 0), Loading Loading @@ -399,9 +399,8 @@ static int usblp_open(struct inode *inode, struct file *file) retval = -ENODEV; intf = usb_find_interface(&usblp_driver, minor); if (!intf) { if (!intf) goto out; } usblp = usb_get_intfdata(intf); if (!usblp || !usblp->dev || !usblp->present) goto out; Loading Loading
drivers/usb/class/usblp.c +185 −186 Original line number Diff line number Diff line Loading @@ -169,7 +169,8 @@ struct usblp { }; #ifdef DEBUG static void usblp_dump(struct usblp *usblp) { static void usblp_dump(struct usblp *usblp) { int p; dbg("usblp=0x%p", usblp); Loading Loading @@ -254,9 +255,8 @@ static int usblp_ctrl_msg(struct usblp *usblp, int request, int type, int dir, i /* High byte has the interface index. Low byte has the alternate setting. */ if ((request == USBLP_REQ_GET_ID) && (type == USB_TYPE_CLASS)) { if ((request == USBLP_REQ_GET_ID) && (type == USB_TYPE_CLASS)) index = (usblp->ifnum<<8)|usblp->protocol[usblp->current_protocol].alt_setting; } retval = usb_control_msg(usblp->dev, dir ? usb_rcvctrlpipe(usblp->dev, 0) : usb_sndctrlpipe(usblp->dev, 0), Loading Loading @@ -399,9 +399,8 @@ static int usblp_open(struct inode *inode, struct file *file) retval = -ENODEV; intf = usb_find_interface(&usblp_driver, minor); if (!intf) { if (!intf) goto out; } usblp = usb_get_intfdata(intf); if (!usblp || !usblp->dev || !usblp->present) goto out; Loading