提交 af222097 编写于 作者: J Julia Lawall 提交者: Jiri Kosina

ps3rom: fix error return code

Set the return variable to an error code as done elsewhere in the function.
Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
Acked-By: NGeoff Levand <geoff@infradead.org>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 6774def6
......@@ -387,6 +387,7 @@ static int ps3rom_probe(struct ps3_system_bus_device *_dev)
if (!host) {
dev_err(&dev->sbd.core, "%s:%u: scsi_host_alloc failed\n",
__func__, __LINE__);
error = -ENOMEM;
goto fail_teardown;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册