aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/zram/zram_drv.c
diff options
context:
space:
mode:
authorJiang Liu <liuj97@gmail.com>2013-06-07 00:07:29 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-06-06 12:12:21 -0700
commit0f0e3ba346c8d8d2cb409b157df79805931a1c2c (patch)
tree538e42fd103521e2186814eafdb37111ecce2d03 /drivers/staging/zram/zram_drv.c
parentzram: simplify and optimize dev_to_zram() (diff)
downloadlinux-dev-0f0e3ba346c8d8d2cb409b157df79805931a1c2c.tar.xz
linux-dev-0f0e3ba346c8d8d2cb409b157df79805931a1c2c.zip
zram: kill unused zram_get_num_devices()
Now there's no caller of zram_get_num_devices(), so kill it. And change zram_devices to static because it's only used in zram_drv.c. Signed-off-by: Jiang Liu <jiang.liu@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/zram/zram_drv.c')
-rw-r--r--drivers/staging/zram/zram_drv.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/staging/zram/zram_drv.c b/drivers/staging/zram/zram_drv.c
index 9f097ce55b24..c138a89fcd51 100644
--- a/drivers/staging/zram/zram_drv.c
+++ b/drivers/staging/zram/zram_drv.c
@@ -37,7 +37,7 @@
/* Globals */
static int zram_major;
-struct zram *zram_devices;
+static struct zram *zram_devices;
/* Module params (documentation at end) */
static unsigned int num_devices = 1;
@@ -679,11 +679,6 @@ static void destroy_device(struct zram *zram)
blk_cleanup_queue(zram->queue);
}
-unsigned int zram_get_num_devices(void)
-{
- return num_devices;
-}
-
static int __init zram_init(void)
{
int ret, dev_id;