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/s390/mm/extmem.c | |
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/s390/mm/extmem.c')
-rw-r--r-- | arch/s390/mm/extmem.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/s390/mm/extmem.c b/arch/s390/mm/extmem.c index c5348108ca3c..506a33b51e4f 100644 --- a/arch/s390/mm/extmem.c +++ b/arch/s390/mm/extmem.c | |||
@@ -234,8 +234,8 @@ query_segment_type (struct dcss_segment *seg) | |||
234 | rc = 0; | 234 | rc = 0; |
235 | 235 | ||
236 | out_free: | 236 | out_free: |
237 | if (qin) kfree(qin); | 237 | kfree(qin); |
238 | if (qout) kfree(qout); | 238 | kfree(qout); |
239 | return rc; | 239 | return rc; |
240 | } | 240 | } |
241 | 241 | ||
@@ -394,7 +394,7 @@ __segment_load (char *name, int do_nonshared, unsigned long *addr, unsigned long | |||
394 | segtype_string[seg->vm_segtype]); | 394 | segtype_string[seg->vm_segtype]); |
395 | goto out; | 395 | goto out; |
396 | out_free: | 396 | out_free: |
397 | kfree (seg); | 397 | kfree(seg); |
398 | out: | 398 | out: |
399 | return rc; | 399 | return rc; |
400 | } | 400 | } |
@@ -505,7 +505,7 @@ segment_modify_shared (char *name, int do_nonshared) | |||
505 | list_del(&seg->list); | 505 | list_del(&seg->list); |
506 | dcss_diag(DCSS_PURGESEG, seg->dcss_name, | 506 | dcss_diag(DCSS_PURGESEG, seg->dcss_name, |
507 | &dummy, &dummy); | 507 | &dummy, &dummy); |
508 | kfree (seg); | 508 | kfree(seg); |
509 | out_unlock: | 509 | out_unlock: |
510 | spin_unlock(&dcss_lock); | 510 | spin_unlock(&dcss_lock); |
511 | return rc; | 511 | return rc; |