aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Fan <van.freenix@gmail.com>2014-10-26 08:08:02 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-05 23:22:47 -0500
commit085f4d84137c6481cdbc12d4c9d7256137b1e9b1 (patch)
tree7ec0403b54579f25ca2b47d130ec8a5d1a178c31
parent86b20dfe9821060f880f6fa4881d51cabce78166 (diff)
tty:vt remove obsolete struct initializer
This patch fixes sparse warning: "obsolete struct initializer, use C99 syntax" Signed-off-by: Peng Fan <van.freenix@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/tty/vt/vt.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c
index 3dc5d56261a5..43c2c2495907 100644
--- a/drivers/tty/vt/vt.c
+++ b/drivers/tty/vt/vt.c
@@ -1367,9 +1367,11 @@ static void csi_m(struct vc_data *vc)
1367 rgb_from_256(vc->vc_par[i])); 1367 rgb_from_256(vc->vc_par[i]));
1368 } else if (vc->vc_par[i] == 2 && /* 24 bit */ 1368 } else if (vc->vc_par[i] == 2 && /* 24 bit */
1369 i <= vc->vc_npar + 3) {/* extremely rare */ 1369 i <= vc->vc_npar + 3) {/* extremely rare */
1370 struct rgb c = {r:vc->vc_par[i+1], 1370 struct rgb c = {
1371 g:vc->vc_par[i+2], 1371 .r = vc->vc_par[i + 1],
1372 b:vc->vc_par[i+3]}; 1372 .g = vc->vc_par[i + 2],
1373 .b = vc->vc_par[i + 3],
1374 };
1373 rgb_foreground(vc, c); 1375 rgb_foreground(vc, c);
1374 i += 3; 1376 i += 3;
1375 } 1377 }
@@ -1388,9 +1390,11 @@ static void csi_m(struct vc_data *vc)
1388 rgb_from_256(vc->vc_par[i])); 1390 rgb_from_256(vc->vc_par[i]));
1389 } else if (vc->vc_par[i] == 2 && /* 24 bit */ 1391 } else if (vc->vc_par[i] == 2 && /* 24 bit */
1390 i <= vc->vc_npar + 3) { 1392 i <= vc->vc_npar + 3) {
1391 struct rgb c = {r:vc->vc_par[i+1], 1393 struct rgb c = {
1392 g:vc->vc_par[i+2], 1394 .r = vc->vc_par[i + 1],
1393 b:vc->vc_par[i+3]}; 1395 .g = vc->vc_par[i + 2],
1396 .b = vc->vc_par[i + 3],
1397 };
1394 rgb_background(vc, c); 1398 rgb_background(vc, c);
1395 i += 3; 1399 i += 3;
1396 } 1400 }