mirror of
https://github.com/torvalds/linux.git
synced 2024-11-08 05:01:48 +00:00
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>
This commit is contained in:
parent
86b20dfe98
commit
085f4d8413
@ -1367,9 +1367,11 @@ static void csi_m(struct vc_data *vc)
|
||||
rgb_from_256(vc->vc_par[i]));
|
||||
} else if (vc->vc_par[i] == 2 && /* 24 bit */
|
||||
i <= vc->vc_npar + 3) {/* extremely rare */
|
||||
struct rgb c = {r:vc->vc_par[i+1],
|
||||
g:vc->vc_par[i+2],
|
||||
b:vc->vc_par[i+3]};
|
||||
struct rgb c = {
|
||||
.r = vc->vc_par[i + 1],
|
||||
.g = vc->vc_par[i + 2],
|
||||
.b = vc->vc_par[i + 3],
|
||||
};
|
||||
rgb_foreground(vc, c);
|
||||
i += 3;
|
||||
}
|
||||
@ -1388,9 +1390,11 @@ static void csi_m(struct vc_data *vc)
|
||||
rgb_from_256(vc->vc_par[i]));
|
||||
} else if (vc->vc_par[i] == 2 && /* 24 bit */
|
||||
i <= vc->vc_npar + 3) {
|
||||
struct rgb c = {r:vc->vc_par[i+1],
|
||||
g:vc->vc_par[i+2],
|
||||
b:vc->vc_par[i+3]};
|
||||
struct rgb c = {
|
||||
.r = vc->vc_par[i + 1],
|
||||
.g = vc->vc_par[i + 2],
|
||||
.b = vc->vc_par[i + 3],
|
||||
};
|
||||
rgb_background(vc, c);
|
||||
i += 3;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user