mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
remove a warning
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4773 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
d2ef14cc47
commit
cdac847a4d
1 changed files with 1 additions and 3 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue