mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 07:41:36 +08:00
remove a warning
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4773 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -128,13 +128,11 @@ int nsh_usbconsole(void)
|
||||
fd = open(CONFIG_NSH_USBCONDEV, O_RDWR);
|
||||
if (fd < 0)
|
||||
{
|
||||
int errval = errno;
|
||||
|
||||
/* ENOTCONN means that the USB device is not yet connected. Anything
|
||||
* else is bad.
|
||||
*/
|
||||
|
||||
DEBUGASSERT(errval == ENOTCONN);
|
||||
DEBUGASSERT(errno == ENOTCONN);
|
||||
|
||||
/* Sleep a bit and try again */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user