summaryrefslogtreecommitdiff
path: root/firmware/src/pcd/rc632.c
diff options
context:
space:
mode:
authorlaforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-09-23 14:50:11 +0000
committerlaforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-09-23 14:50:11 +0000
commit57d818a32dafe0d9941bac88f78bbd45ffb0e21b (patch)
treecc242e5e4c97ec7392173eb8280bf332d77c3987 /firmware/src/pcd/rc632.c
parent460ece8365600e1a8fdb124c2f68de6aabf1fa62 (diff)
- fix return value in case of unknown command
git-svn-id: https://svn.openpcd.org:2342/trunk@223 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'firmware/src/pcd/rc632.c')
-rw-r--r--firmware/src/pcd/rc632.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/src/pcd/rc632.c b/firmware/src/pcd/rc632.c
index da9ffd0..147024f 100644
--- a/firmware/src/pcd/rc632.c
+++ b/firmware/src/pcd/rc632.c
@@ -484,7 +484,7 @@ static int rc632_usb_in(struct req_ctx *rctx)
break;
default:
DEBUGP("UNKNOWN ");
- return -EINVAL;
+ return USB_ERR(USB_ERR_CMD_UNKNOWN);
}
return (poh->flags & OPENPCD_FLAG_RESPOND) ? USB_RET_RESPOND : 0;
personal git repositories of Harald Welte. Your mileage may vary