diff options
| -rw-r--r-- | mm/swap_slots.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/mm/swap_slots.c b/mm/swap_slots.c index 7ebb23836f68..b1ccb58ad397 100644 --- a/mm/swap_slots.c +++ b/mm/swap_slots.c | |||
| @@ -267,8 +267,6 @@ int free_swap_slot(swp_entry_t entry) | |||
| 267 | { | 267 | { |
| 268 | struct swap_slots_cache *cache; | 268 | struct swap_slots_cache *cache; |
| 269 | 269 | ||
| 270 | WARN_ON_ONCE(!swap_slot_cache_initialized); | ||
| 271 | |||
| 272 | cache = &get_cpu_var(swp_slots); | 270 | cache = &get_cpu_var(swp_slots); |
| 273 | if (use_swap_slot_cache && cache->slots_ret) { | 271 | if (use_swap_slot_cache && cache->slots_ret) { |
| 274 | spin_lock_irq(&cache->free_lock); | 272 | spin_lock_irq(&cache->free_lock); |
