public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jiri Slaby <jirislaby@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: <linux-kernel@vger.kernel.org>
Subject: [PATCH 2/2] Char: vt, use ARRAY_SIZE
Date: Tue, 29 May 2007 12:44:24 +0200 (CEST)	[thread overview]
Message-ID: <581488651385710635@wsc.cz> (raw)
In-Reply-To: <253477319205412858@wsc.cz>

vt, use ARRAY_SIZE

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>

---
commit 4be166037b1ccf8a639aef015a224941de7dcf0a
tree 68cf3d32232a23963fbfd15d0831b89ea7123b92
parent daa738839b831a78b895ad9cec1da0157e4b1be7
author Jiri Slaby <jirislaby@gmail.com> Sun, 27 May 2007 10:13:41 +0200
committer Jiri Slaby <jirislaby@gmail.com> Tue, 29 May 2007 12:41:13 +0200

 drivers/char/vt.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/char/vt.c b/drivers/char/vt.c
index 1cc960a..694f625 100644
--- a/drivers/char/vt.c
+++ b/drivers/char/vt.c
@@ -1990,8 +1990,7 @@ static int is_double_width(uint32_t ucs)
 		{ 0xFE30, 0xFE6F }, { 0xFF00, 0xFF60 }, { 0xFFE0, 0xFFE6 },
 		{ 0x20000, 0x2FFFD }, { 0x30000, 0x3FFFD }
 	};
-	return bisearch(ucs, double_width,
-		sizeof(double_width) / sizeof(*double_width) - 1);
+	return bisearch(ucs, double_width, ARRAY_SIZE(double_width) - 1);
 }
 
 /* acquires console_sem */

      reply	other threads:[~2007-05-29 10:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-29 10:43 [PATCH 1/2] Char: vt, use kzalloc Jiri Slaby
2007-05-29 10:44 ` Jiri Slaby [this message]

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=581488651385710635@wsc.cz \
    --to=jirislaby@gmail.com \
    --cc=akpm@linux-foundation.org \
    --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