Skip to content
Snippets Groups Projects
Commit cdac847a authored by patacongo's avatar patacongo
Browse files

remove a warning

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4773 42af7a65-404d-4744-a932-0658087f49c3
parent d2ef14cc
No related branches found
No related tags found
No related merge requests found
...@@ -128,13 +128,11 @@ int nsh_usbconsole(void) ...@@ -128,13 +128,11 @@ int nsh_usbconsole(void)
fd = open(CONFIG_NSH_USBCONDEV, O_RDWR); fd = open(CONFIG_NSH_USBCONDEV, O_RDWR);
if (fd < 0) if (fd < 0)
{ {
int errval = errno;
/* ENOTCONN means that the USB device is not yet connected. Anything /* ENOTCONN means that the USB device is not yet connected. Anything
* else is bad. * else is bad.
*/ */
DEBUGASSERT(errval == ENOTCONN); DEBUGASSERT(errno == ENOTCONN);
/* Sleep a bit and try again */ /* Sleep a bit and try again */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment