diff options
Diffstat (limited to 'drivers/xen')
-rw-r--r-- | drivers/xen/tmem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/xen/tmem.c b/drivers/xen/tmem.c index cc072c66c766..0f0493c63371 100644 --- a/drivers/xen/tmem.c +++ b/drivers/xen/tmem.c | |||
@@ -379,10 +379,10 @@ static int xen_tmem_init(void) | |||
379 | #ifdef CONFIG_FRONTSWAP | 379 | #ifdef CONFIG_FRONTSWAP |
380 | if (tmem_enabled && frontswap) { | 380 | if (tmem_enabled && frontswap) { |
381 | char *s = ""; | 381 | char *s = ""; |
382 | struct frontswap_ops *old_ops = | 382 | struct frontswap_ops *old_ops; |
383 | frontswap_register_ops(&tmem_frontswap_ops); | ||
384 | 383 | ||
385 | tmem_frontswap_poolid = -1; | 384 | tmem_frontswap_poolid = -1; |
385 | old_ops = frontswap_register_ops(&tmem_frontswap_ops); | ||
386 | if (IS_ERR(old_ops) || old_ops) { | 386 | if (IS_ERR(old_ops) || old_ops) { |
387 | if (IS_ERR(old_ops)) | 387 | if (IS_ERR(old_ops)) |
388 | return PTR_ERR(old_ops); | 388 | return PTR_ERR(old_ops); |