From ea0e5159d78840f91490c78c1b8b569539fc0185 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Sun, 28 Jul 2019 11:50:48 -0400 Subject: Remove un-needed asserts. --- usbh/src/pipe.rs | 5 ----- 1 file changed, 5 deletions(-) (limited to 'usbh') 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 -- cgit v1.2.3