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

Commit af222097 authored by Julia Lawall's avatar Julia Lawall Committed by Jiri Kosina
Browse files

ps3rom: fix error return code



Set the return variable to an error code as done elsewhere in the function.

Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Acked-By: default avatarGeoff Levand <geoff@infradead.org>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 6774def6
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -387,6 +387,7 @@ static int ps3rom_probe(struct ps3_system_bus_device *_dev)
	if (!host) {
	if (!host) {
		dev_err(&dev->sbd.core, "%s:%u: scsi_host_alloc failed\n",
		dev_err(&dev->sbd.core, "%s:%u: scsi_host_alloc failed\n",
			__func__, __LINE__);
			__func__, __LINE__);
		error = -ENOMEM;
		goto fail_teardown;
		goto fail_teardown;
	}
	}