* [PATCH 1/2] Char: vt, use kzalloc
@ 2007-05-29 10:43 Jiri Slaby
2007-05-29 10:44 ` [PATCH 2/2] Char: vt, use ARRAY_SIZE Jiri Slaby
0 siblings, 1 reply; 2+ messages in thread
From: Jiri Slaby @ 2007-05-29 10:43 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
vt, use kzalloc
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
---
commit daa738839b831a78b895ad9cec1da0157e4b1be7
tree 039d7b54429bd8256f59e493f17e43947a2f173e
parent 1a5e44385253ef9a193badf768f40543af6996ca
author Jiri Slaby <jirislaby@gmail.com> Sun, 27 May 2007 09:49:53 +0200
committer Jiri Slaby <jirislaby@gmail.com> Tue, 29 May 2007 12:41:08 +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 bbd9fc4..1cc960a 100644
--- a/drivers/char/vt.c
+++ b/drivers/char/vt.c
@@ -729,10 +729,9 @@ int vc_allocate(unsigned int currcons) /* return 0 on success */
/* although the numbers above are not valid since long ago, the
point is still up-to-date and the comment still has its value
even if only as a historical artifact. --mj, July 1998 */
- vc = kmalloc(sizeof(struct vc_data), GFP_KERNEL);
+ vc = kzalloc(sizeof(struct vc_data), GFP_KERNEL);
if (!vc)
return -ENOMEM;
- memset(vc, 0, sizeof(*vc));
vc_cons[currcons].d = vc;
INIT_WORK(&vc_cons[currcons].SAK_work, vc_SAK);
visual_init(vc, currcons, 1);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 2/2] Char: vt, use ARRAY_SIZE
2007-05-29 10:43 [PATCH 1/2] Char: vt, use kzalloc Jiri Slaby
@ 2007-05-29 10:44 ` Jiri Slaby
0 siblings, 0 replies; 2+ messages in thread
From: Jiri Slaby @ 2007-05-29 10:44 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
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 */
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-05-29 10:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-29 10:43 [PATCH 1/2] Char: vt, use kzalloc Jiri Slaby
2007-05-29 10:44 ` [PATCH 2/2] Char: vt, use ARRAY_SIZE Jiri Slaby
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox