Skip to contentSkip to conversation

: sn9c20x: fix checkpatch warning: sizeof cmatrix should be sizeof(cmatrix)

PATCH New Morgan Phillips 1 participant 1 message Sep 8, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : sn9c20x: fix checkpatch warning: sizeof cmatrix should be sizeof(cmatrix)

---
 drivers/media/usb/gspca/sn9c20x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/usb/gspca/sn9c20x.c +1 -1
index 41a9a89..dd120d4 100644
@@ -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;
Signature · 1 line
1.9.1