diff mbox

[gspca_jf,tree] gspca zc3xx: signal when unknown packet received

Message ID 4B63400E.3000502@freemail.hu (mailing list archive)
State Rejected
Headers show

Commit Message

Németh Márton Jan. 29, 2010, 8:07 p.m. UTC
None
diff mbox

Patch

diff -r 95d3956ea3e5 linux/drivers/media/video/gspca/zc3xx.c
--- a/linux/drivers/media/video/gspca/zc3xx.c	Fri Jan 29 15:05:25 2010 +0100
+++ b/linux/drivers/media/video/gspca/zc3xx.c	Fri Jan 29 21:01:52 2010 +0100
@@ -7213,14 +7213,17 @@ 
 			u8 *data,		/* interrupt packet data */
 			int len)		/* interrput packet length */
 {
+	int ret = -EINVAL;
+
 	if (len == 8 && data[4] == 1) {
 		input_report_key(gspca_dev->input_dev, KEY_CAMERA, 1);
 		input_sync(gspca_dev->input_dev);
 		input_report_key(gspca_dev->input_dev, KEY_CAMERA, 0);
 		input_sync(gspca_dev->input_dev);
+		ret = 0;
 	}

-	return 0;
+	return ret;
 }
 #endif