]> Zhao Yanbai Git Server - minix.git/commit
usb/hcd: asserts should not have side effects 26/2826/1
authorLionel Sambuc <lionel@minix3.org>
Fri, 12 Sep 2014 11:20:40 +0000 (13:20 +0200)
committerLionel Sambuc <lionel@minix3.org>
Fri, 12 Sep 2014 11:20:43 +0000 (13:20 +0200)
commit663180310555bd327d139fb2cd11318607a7f247
tree4e4a3a972652225ba5a06b947374ecf5354f6761
parentd5b158e992deb52643ecf09899b4a1f09eaa634c
usb/hcd: asserts should not have side effects

They can be deactivated with -DNDEBUG, which is why they can't contain
code which should always be run.

It seems the local implementation of USB_ASSERT doesn't honor the
CPP flags NDEBUG, this will be corrected in a later patch.

Change-Id: Iac56b09fd563f1b8c4c7be15a468a05b9cc86a18
minix/drivers/usb/usbd/hcd/hcd_common.c