From: arighi Date: Mon, 20 Sep 2010 15:27:35 +0000 (+0000) Subject: STM32: USB: remove unnecessary ASSERT() X-Git-Tag: 2.6.0~159 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=8af7d7531523e1156f699c1252c30e45bca08057;p=bertos.git STM32: USB: remove unnecessary ASSERT() USB internal read/write buffer does not need to be 4-bytes aligned. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4242 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/cortex-m3/drv/usb_stm32.c b/bertos/cpu/cortex-m3/drv/usb_stm32.c index ef1abda2..be9ba640 100644 --- a/bertos/cpu/cortex-m3/drv/usb_stm32.c +++ b/bertos/cpu/cortex-m3/drv/usb_stm32.c @@ -611,9 +611,6 @@ static void __usb_ep_io(int EP) cpu_flags_t flags; \ stm32_usb_io_status_t ret; \ \ - /* NOTE: buffer must be 4-bytes aligned */ \ - ASSERT(!((size_t)__buf & 0x03)); \ - \ /* Fill EP descriptor */ \ IRQ_SAVE_DISABLE(flags); \ if (__size < 0) \