aboutsummaryrefslogtreecommitdiffstats
path: root/usbh/src
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2019-07-28 11:50:48 -0400
committerBrian Cully <bjc@kublai.com>2019-07-28 11:50:48 -0400
commitea0e5159d78840f91490c78c1b8b569539fc0185 (patch)
tree33fc4fc16461f9fc317d0b722bfbdf0bc365522a /usbh/src
parentc6f841e78c41c8c66d90e05c5e57edc7a99c47ad (diff)
downloadsamd21-demo-ea0e5159d78840f91490c78c1b8b569539fc0185.tar.gz
samd21-demo-ea0e5159d78840f91490c78c1b8b569539fc0185.zip
Remove un-needed asserts.
Diffstat (limited to 'usbh/src')
-rw-r--r--usbh/src/pipe.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/usbh/src/pipe.rs b/usbh/src/pipe.rs
index 2823dbe..3dab629 100644
--- a/usbh/src/pipe.rs
+++ b/usbh/src/pipe.rs
@@ -177,11 +177,6 @@ impl Pipe<'_, '_> {
nak_limit: usize,
millis: &dyn Fn() -> usize,
) -> Result<(), PipeErr> {
- // Data needs to be word aligned.
- assert!((buf.ptr as u32) & 0x3 == 0);
- // byte_count section of register is 14 bits.
- assert!(buf.len < 16_384);
-
trace!("p{}: sending {:?}", self.num, buf);
self.desc