[media] sn9c20x: fix checkpatch warning: sizeof cmatrix should be sizeof(cmatrix)
authorMorgan Phillips <winter2718@gmail.com>
Mon, 8 Sep 2014 12:49:47 +0000 (09:49 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sun, 21 Sep 2014 23:59:57 +0000 (20:59 -0300)
Signed-off-by: Morgan Phillips <winter2718@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/gspca/sn9c20x.c

index 95467f009d47008bd55e5ad5cacc808b06eb8ff6..d0ee899584a9f1188d44613ec6f21228a0e94e7a 100644 (file)
@@ -1297,7 +1297,7 @@ static void set_cmatrix(struct gspca_dev *gspca_dev,
        s32 hue_coord, hue_index = 180 + hue;
        u8 cmatrix[21];
 
-       memset(cmatrix, 0, sizeof cmatrix);
+       memset(cmatrix, 0, sizeof(cmatrix));
        cmatrix[2] = (contrast * 0x25 / 0x100) + 0x26;
        cmatrix[0] = 0x13 + (cmatrix[2] - 0x26) * 0x13 / 0x25;
        cmatrix[4] = 0x07 + (cmatrix[2] - 0x26) * 0x07 / 0x25;