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

Commit 00272c85 authored by Tomohiro Kusumi's avatar Tomohiro Kusumi Committed by Mike Snitzer
Browse files

dm linear: remove redundant target name from error messages



Commit 72d94861 back in 2006 should have consistently removed
"dm-linear: " from all error messages.

Signed-off-by: default avatarTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent 4c7da06f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -39,20 +39,20 @@ static int linear_ctr(struct dm_target *ti, unsigned int argc, char **argv)

	lc = kmalloc(sizeof(*lc), GFP_KERNEL);
	if (lc == NULL) {
		ti->error = "dm-linear: Cannot allocate linear context";
		ti->error = "Cannot allocate linear context";
		return -ENOMEM;
	}

	ret = -EINVAL;
	if (sscanf(argv[1], "%llu%c", &tmp, &dummy) != 1) {
		ti->error = "dm-linear: Invalid device sector";
		ti->error = "Invalid device sector";
		goto bad;
	}
	lc->start = tmp;

	ret = dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), &lc->dev);
	if (ret) {
		ti->error = "dm-linear: Device lookup failed";
		ti->error = "Device lookup failed";
		goto bad;
	}