Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 317250
b: refs/heads/master
c: 94b8435
h: refs/heads/master
v: v3
  • Loading branch information
Sam Hansen authored and Greg Kroah-Hartman committed Jun 11, 2012
1 parent d0cffd9 commit f56b216
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2db51dae56240b52fe08ddbb1a2eb47fe7cfd044
refs/heads/master: 94b8435ff4d46dde75173da45564b0d65889dc64
8 changes: 4 additions & 4 deletions trunk/drivers/staging/zram/zram_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ static int create_device(struct zram *zram, int device_id)
zram->disk = alloc_disk(1);
if (!zram->disk) {
blk_cleanup_queue(zram->queue);
pr_warning("Error allocating disk structure for device %d\n",
pr_warn("Error allocating disk structure for device %d\n",
device_id);
ret = -ENOMEM;
goto out;
Expand Down Expand Up @@ -676,7 +676,7 @@ static int create_device(struct zram *zram, int device_id)
ret = sysfs_create_group(&disk_to_dev(zram->disk)->kobj,
&zram_disk_attr_group);
if (ret < 0) {
pr_warning("Error creating sysfs group");
pr_warn("Error creating sysfs group");
goto out;
}

Expand Down Expand Up @@ -710,15 +710,15 @@ static int __init zram_init(void)
int ret, dev_id;

if (num_devices > max_num_devices) {
pr_warning("Invalid value for num_devices: %u\n",
pr_warn("Invalid value for num_devices: %u\n",
num_devices);
ret = -EINVAL;
goto out;
}

zram_major = register_blkdev(0, "zram");
if (zram_major <= 0) {
pr_warning("Unable to get major number\n");
pr_warn("Unable to get major number\n");
ret = -EBUSY;
goto out;
}
Expand Down

0 comments on commit f56b216

Please sign in to comment.