mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [Patch 1/2] drivers/char/vt.c: remove unnecessary code
@ 2005-02-28 12:51 colbuse
  0 siblings, 0 replies; only message in thread
From: colbuse @ 2005-02-28 12:51 UTC (permalink / raw)
  To: linux-kernel; +Cc: akpm


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@ensimag.imag.fr>

--- 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 !


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-02-28 12:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-28 12:51 [Patch 1/2] drivers/char/vt.c: remove unnecessary code colbuse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome