From: Tilman Schmidt Date: Wed, 1 Jul 2009 11:20:57 +0000 (+0000) Subject: gigaset: drop pointless check X-Git-Tag: v2.6.31-rc3~40^2~50 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c56bd0c39ce31e694b6f32223c15bdd582263a3f;p=platform%2Fupstream%2Fkernel-adaptation-pc.git gigaset: drop pointless check Drop a sanity check which doesn't serve any useful purpose anymore. Signed-off-by: Tilman Schmidt Signed-off-by: David S. Miller --- diff --git a/drivers/isdn/gigaset/isocdata.c b/drivers/isdn/gigaset/isocdata.c index db3a1e4..bed38fc 100644 --- a/drivers/isdn/gigaset/isocdata.c +++ b/drivers/isdn/gigaset/isocdata.c @@ -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) {