mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: colbuse@ensisun.imag.fr
To: linux-kernel@vger.kernel.org
Cc: akpm@zip.com.au
Subject: [Patch 1/2] drivers/char/vt.c: remove unnecessary code
Date: Mon, 28 Feb 2005 13:51:09 +0100	[thread overview]
Message-ID: <1109595069.422313bd9f782@webmail.imag.fr> (raw)


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 !


                 reply	other threads:[~2005-02-28 12:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1109595069.422313bd9f782@webmail.imag.fr \
    --to=colbuse@ensisun.imag.fr \
    --cc=akpm@zip.com.au \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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