projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] gfp flags annotations - part 1
[powerpc.git]
/
drivers
/
atm
/
fore200e.c
diff --git
a/drivers/atm/fore200e.c
b/drivers/atm/fore200e.c
index
2bf723a
..
14f6a62
100644
(file)
--- a/
drivers/atm/fore200e.c
+++ b/
drivers/atm/fore200e.c
@@
-178,14
+178,12
@@
fore200e_irq_itoa(int irq)
static void*
static void*
-fore200e_kmalloc(int size,
in
t flags)
+fore200e_kmalloc(int size,
gfp_
t flags)
{
{
- void
* chunk = km
alloc(size, flags);
+ void
*chunk = kz
alloc(size, flags);
- if (chunk)
- memset(chunk, 0x00, size);
- else
- printk(FORE200E "kmalloc() failed, requested size = %d, flags = 0x%x\n", size, flags);
+ if (!chunk)
+ printk(FORE200E "kmalloc() failed, requested size = %d, flags = 0x%x\n", size, flags);
return chunk;
}
return chunk;
}