mm: frontswap: remove unnecessary check during initialization
authorSasha Levin <levinsasha928@gmail.com>
Sun, 10 Jun 2012 10:51:05 +0000 (12:51 +0200)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 11 Jun 2012 19:32:08 +0000 (15:32 -0400)
commitf9f08103ebd634999abfccc8ff94985530f14d74
tree864ea13a5e3bb8a89db38c20b3967b039c15ebf0
parentd9674dda1c7ed49d503d3d7308c90a9f965f0783
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>
mm/frontswap.c