diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2014-11-05 11:11:10 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2014-11-20 14:58:19 +0100 |
commit | af222097aaf7f547b7543d5a0d6198d1480db414 (patch) | |
tree | 50b13d189bd65efea106e55b6eb76c68c7278a5c /drivers | |
parent | treewide: fix typo in printk and Kconfig (diff) | |
download | linux-af222097aaf7f547b7543d5a0d6198d1480db414.tar.xz linux-af222097aaf7f547b7543d5a0d6198d1480db414.zip |
ps3rom: fix error return code
Set the return variable to an error code as done elsewhere in the function.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Acked-By: Geoff Levand <geoff@infradead.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/ps3rom.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/ps3rom.c b/drivers/scsi/ps3rom.c index ef23fabe3924..619caf1acc9c 100644 --- a/drivers/scsi/ps3rom.c +++ b/drivers/scsi/ps3rom.c @@ -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; } |