[media] cx25840: Don't report an error if max size is adjusted
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sat, 1 Nov 2014 12:11:20 +0000 (09:11 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 3 Nov 2014 17:56:36 +0000 (15:56 -0200)
There's no reason to report:
cx25840 7-0044:  Firmware download size changed to 16 bytes max length

If the driver needs to adjust the buffer's maximum size.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/cx25840/cx25840-firmware.c

index b3169f94ece879ee89ecb45d61e4a390927b5582..6092bf71300feac9c461ab09eaa71201b342f3cb 100644 (file)
@@ -122,10 +122,9 @@ int cx25840_loadfw(struct i2c_client *client)
                gpio_da = cx25840_read(client, 0x164);
        }
 
-       if (is_cx231xx(state) && MAX_BUF_SIZE > 16) {
-               v4l_err(client, " Firmware download size changed to 16 bytes max length\n");
-               MAX_BUF_SIZE = 16;  /* cx231xx cannot accept more than 16 bytes at a time */
-       }
+       /* cx231xx cannot accept more than 16 bytes at a time */
+       if (is_cx231xx(state) && MAX_BUF_SIZE > 16)
+               MAX_BUF_SIZE = 16;
 
        if (request_firmware(&fw, fwname, FWDEV(client)) != 0) {
                v4l_err(client, "unable to open firmware %s\n", fwname);