[PATCH] kfree cleanup: arch
This is the arch/ part of the big kfree cleanup patch. Remove pointless checks for NULL prior to calling kfree() in arch/. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Acked-by: Grant Grundler <grundler@parisc-linux.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
f99d49adf5
commit
b2325fe1b7
@@ -224,7 +224,7 @@ static int need_poll(int n)
|
||||
next_poll.used = n;
|
||||
return(0);
|
||||
}
|
||||
if(next_poll.poll != NULL) kfree(next_poll.poll);
|
||||
kfree(next_poll.poll);
|
||||
next_poll.poll = um_kmalloc_atomic(n * sizeof(struct pollfd));
|
||||
if(next_poll.poll == NULL){
|
||||
printk("need_poll : failed to allocate new pollfds\n");
|
||||
|
Reference in New Issue
Block a user