dt-bindings: Fix 'unevaluatedProperties' errors in DT graph users
[linux-2.6-microblaze.git] / mm / swap_slots.c
index 3e64535..6248d10 100644 (file)
@@ -16,7 +16,7 @@
  * to local caches without needing to acquire swap_info
  * lock.  We do not reuse the returned slots directly but
  * move them back to the global pool in a batch.  This
- * allows the slots to coaellesce and reduce fragmentation.
+ * allows the slots to coalesce and reduce fragmentation.
  *
  * The swap entry allocated is marked with SWAP_HAS_CACHE
  * flag in map_count that prevents it from being allocated
@@ -193,8 +193,7 @@ static void drain_slots_cache_cpu(unsigned int cpu, unsigned int type,
                        cache->slots_ret = NULL;
                }
                spin_unlock_irq(&cache->free_lock);
-               if (slots)
-                       kvfree(slots);
+               kvfree(slots);
        }
 }
 
@@ -237,7 +236,7 @@ static int free_slot_cache(unsigned int cpu)
        return 0;
 }
 
-int enable_swap_slots_cache(void)
+void enable_swap_slots_cache(void)
 {
        mutex_lock(&swap_slots_cache_enable_mutex);
        if (!swap_slot_cache_initialized) {
@@ -255,7 +254,6 @@ int enable_swap_slots_cache(void)
        __reenable_swap_slots_cache();
 out_unlock:
        mutex_unlock(&swap_slots_cache_enable_mutex);
-       return 0;
 }
 
 /* called with swap slot cache's alloc lock held */