The subdevice function pointers are only setup if the device is
attached. The 'attached' flag in the private data is unnecessary.
Remove it.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  * one sub device just now: A/D
  */
 struct usbduxfast_private {
-       int attached;           /* is attached? */
        struct usb_device *usb; /* pointer to the usb-device */
        struct urb *urbIn;      /* BULK-transfer handling: urb */
        int8_t *transfer_buffer;
                return;
        }
 
-       if (unlikely(!devpriv->attached)) {
-               /* no comedi device there */
-               return;
-       }
-
        /* first we test if something unusual has just happened */
        switch (urb->status) {
        case 0:
        s->maxdata      = 0x1000;
        s->range_table  = &range_usbduxfast_ai_range;
 
-       devpriv->attached = 1;
-
        up(&devpriv->sem);
 
        return 0;
 
        down(&devpriv->sem);
 
-       devpriv->attached = 0;
        devpriv->comedidev = NULL;
 
        if (devpriv->intf)