Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c56bd0c3 authored by Tilman Schmidt's avatar Tilman Schmidt Committed by David S. Miller
Browse files

gigaset: drop pointless check



Drop a sanity check which doesn't serve any useful purpose anymore.

Signed-off-by: default avatarTilman Schmidt <tilman@imap.cc>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bceb0f12
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -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) {