diff options
-rw-r--r-- | mm/frontswap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/frontswap.c b/mm/frontswap.c index d8dc9867b005..7c26e899cec9 100644 --- a/mm/frontswap.c +++ b/mm/frontswap.c | |||
@@ -110,8 +110,7 @@ void __frontswap_init(unsigned type) | |||
110 | BUG_ON(sis == NULL); | 110 | BUG_ON(sis == NULL); |
111 | if (sis->frontswap_map == NULL) | 111 | if (sis->frontswap_map == NULL) |
112 | return; | 112 | return; |
113 | if (frontswap_enabled) | 113 | frontswap_ops.init(type); |
114 | frontswap_ops.init(type); | ||
115 | } | 114 | } |
116 | EXPORT_SYMBOL(__frontswap_init); | 115 | EXPORT_SYMBOL(__frontswap_init); |
117 | 116 | ||