[Patch 1/2] drivers/char/vt.c: remove unnecessary code

From: colbuse
Date: Mon Feb 28 2005 - 07:57:21 EST



In the palette escape sequence, setting the elems of par[] at 0 is not needed,
since its values are every time overwritten in this case.

Signed-off-by: Emmanuel Colbus <emmanuel.colbus@xxxxxxxxxxxxxxx>

--- old/drivers/char/vt.c 2004-12-24 22:35:25.000000000 +0100
+++ new/drivers/char/vt.c 2005-02-28 12:51:43.910651512 +0100
@@ -1626,8 +1626,6 @@
return;
case ESnonstd:
if (c=='P') { /* palette escape sequence */
- for (npar=0; npar<NPAR; npar++)
- par[npar] = 0 ;
npar = 0 ;
vc_state = ESpalette;
return;


--
Emmanuel Colbus
Club GNU/Linux
ENSIMAG - departement telecoms



-------------------------------------------------
envoyé via Webmail/IMAG !

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/