Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3889508e authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "zram: kill unused zram_get_num_devices()"

parents c6886024 48d0001d
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -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;
+0 −2
Original line number Diff line number Diff line
@@ -110,8 +110,6 @@ struct zram {
	struct zram_stats stats;
};

extern struct zram *zram_devices;
unsigned int zram_get_num_devices(void);
#ifdef CONFIG_SYSFS
extern struct attribute_group zram_disk_attr_group;
#endif