diff options
author | Brian Cully <bjc@kublai.com> | 2019-07-28 11:50:48 -0400 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2019-07-28 11:50:48 -0400 |
commit | ea0e5159d78840f91490c78c1b8b569539fc0185 (patch) | |
tree | 33fc4fc16461f9fc317d0b722bfbdf0bc365522a /usbh/src/pipe.rs | |
parent | c6f841e78c41c8c66d90e05c5e57edc7a99c47ad (diff) | |
download | samd21-demo-ea0e5159d78840f91490c78c1b8b569539fc0185.tar.gz samd21-demo-ea0e5159d78840f91490c78c1b8b569539fc0185.zip |
Remove un-needed asserts.
Diffstat (limited to 'usbh/src/pipe.rs')
-rw-r--r-- | usbh/src/pipe.rs | 5 |
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 |