gigaset: drop pointless check
authorTilman Schmidt <tilman@imap.cc>
Wed, 1 Jul 2009 11:20:57 +0000 (11:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Jul 2009 20:16:46 +0000 (13:16 -0700)
Drop a sanity check which doesn't serve any useful purpose anymore.

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

index db3a1e4..bed38fc 100644 (file)
@@ -174,12 +174,6 @@ int gigaset_isowbuf_getbytes(struct isowbuf_t *iwb, int size)
                pr_err("invalid size %d\n", size);
                return -EINVAL;
        }
-       src = iwb->read;
-       if (unlikely(limit >= BAS_OUTBUFSIZE + BAS_OUTBUFPAD ||
-                    (read < src && limit >= src))) {
-               pr_err("isoc write buffer frame reservation violated\n");
-               return -EFAULT;
-       }
 #endif
 
        if (read < write) {