diff options
author | Jesper Juhl <jesper.juhl@gmail.com> | 2005-11-07 04:01:35 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 10:54:06 -0500 |
commit | b2325fe1b7e5654fac9e9419423aa2c58a3dbd83 (patch) | |
tree | 934555b25ef9b33d3c4242b5dafb49ee8931e993 /arch/um | |
parent | f99d49adf527fa6f7a9c42257fa76bca6b8df1e3 (diff) |
[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>
Diffstat (limited to 'arch/um')
-rw-r--r-- | arch/um/kernel/sigio_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/kernel/sigio_user.c b/arch/um/kernel/sigio_user.c index 3fbfd956bfe7..48b1f644b9a6 100644 --- a/arch/um/kernel/sigio_user.c +++ b/arch/um/kernel/sigio_user.c | |||
@@ -224,7 +224,7 @@ static int need_poll(int n) | |||
224 | next_poll.used = n; | 224 | next_poll.used = n; |
225 | return(0); | 225 | return(0); |
226 | } | 226 | } |
227 | if(next_poll.poll != NULL) kfree(next_poll.poll); | 227 | kfree(next_poll.poll); |
228 | next_poll.poll = um_kmalloc_atomic(n * sizeof(struct pollfd)); | 228 | next_poll.poll = um_kmalloc_atomic(n * sizeof(struct pollfd)); |
229 | if(next_poll.poll == NULL){ | 229 | if(next_poll.poll == NULL){ |
230 | printk("need_poll : failed to allocate new pollfds\n"); | 230 | printk("need_poll : failed to allocate new pollfds\n"); |