From 57d818a32dafe0d9941bac88f78bbd45ffb0e21b Mon Sep 17 00:00:00 2001 From: laforge Date: Sat, 23 Sep 2006 14:50:11 +0000 Subject: - fix return value in case of unknown command git-svn-id: https://svn.openpcd.org:2342/trunk@223 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- firmware/src/pcd/rc632.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/src') 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; -- cgit v1.2.3