diff options
author | Sasha Levin <levinsasha928@gmail.com> | 2012-06-10 06:51:05 -0400 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-06-11 15:32:08 -0400 |
commit | f9f08103ebd634999abfccc8ff94985530f14d74 (patch) | |
tree | 864ea13a5e3bb8a89db38c20b3967b039c15ebf0 /mm | |
parent | d9674dda1c7ed49d503d3d7308c90a9f965f0783 (diff) |
mm: frontswap: remove unnecessary check during initialization
The check whether frontswap is enabled or not is done in the API functions in
the frontswap header, before they are passed to the internal
double-underscored frontswap functions.
Remove the check from __frontswap_init for consistency.
Reviewed-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'mm')
-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 | ||