diff mbox

[3/3] pac7311: remove magic value for USB_BUF_SZ

Message ID 4AC6FEDA.30804@freemail.hu (mailing list archive)
State Accepted
Delegated to: Douglas Landgraf
Headers show

Commit Message

Németh Márton Oct. 3, 2009, 7:35 a.m. UTC
None
diff mbox

Patch

diff -upr c/drivers/media/video/gspca/pac7311.c d/drivers/media/video/gspca/pac7311.c
--- c/drivers/media/video/gspca/pac7311.c	2009-10-03 08:47:30.000000000 +0200
+++ d/drivers/media/video/gspca/pac7311.c	2009-10-03 09:02:31.000000000 +0200
@@ -474,7 +474,7 @@  static void reg_w_var(struct gspca_dev *
 			reg_w_page(gspca_dev, page3_7302, sizeof page3_7302);
 			break;
 		default:
-			if (len > 64) {
+			if (len > USB_BUF_SZ) {
 				PDEBUG(D_ERR|D_STREAM,
 					"Incorrect variable sequence");
 				return;