isdn/gigaset: drop debug check on isochronous write
authorTilman Schmidt <tilman@imap.cc>
Mon, 5 Jul 2010 14:18:53 +0000 (14:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Jul 2010 23:57:52 +0000 (16:57 -0700)
With CONFIG_GIGASET_DEBUG set, every isochronous USB frame after
an erroneous one was checked for more errors. This produced only
noise messages in practice, so drop it.

Impact: cleanup
Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/gigaset/bas-gigaset.c

index 2dab5313913bb035cd435415e1dad2e2b04003d6..0ded3640b926ea6edf86955a04978b6a4c78e776 100644 (file)
@@ -1188,24 +1188,6 @@ static void write_iso_tasklet(unsigned long data)
                                        break;
                                }
                        }
-#ifdef CONFIG_GIGASET_DEBUG
-                       /* check assumption on remaining frames */
-                       for (; i < BAS_NUMFRAMES; i++) {
-                               ifd = &urb->iso_frame_desc[i];
-                               if (ifd->status != -EINPROGRESS
-                                   || ifd->actual_length != 0) {
-                                       dev_warn(cs->dev,
-                                            "isochronous write: frame %d: %s, "
-                                            "%d of %d bytes sent\n",
-                                            i, get_usb_statmsg(ifd->status),
-                                            ifd->actual_length, ifd->length);
-                                       offset = (ifd->offset +
-                                                 ifd->actual_length)
-                                                % BAS_OUTBUFSIZE;
-                                       break;
-                               }
-                       }
-#endif
                        break;
                case -EPIPE:                    /* stall - probably underrun */
                        dev_err(cs->dev, "isochronous write stalled\n");