diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2014-11-05 05:11:10 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2014-11-20 08:58:19 -0500 |
commit | af222097aaf7f547b7543d5a0d6198d1480db414 (patch) | |
tree | 50b13d189bd65efea106e55b6eb76c68c7278a5c | |
parent | 6774def6422f6eac53f1828c317bf3b08a8f5a60 (diff) |
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>
-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) | |||
387 | if (!host) { | 387 | if (!host) { |
388 | dev_err(&dev->sbd.core, "%s:%u: scsi_host_alloc failed\n", | 388 | dev_err(&dev->sbd.core, "%s:%u: scsi_host_alloc failed\n", |
389 | __func__, __LINE__); | 389 | __func__, __LINE__); |
390 | error = -ENOMEM; | ||
390 | goto fail_teardown; | 391 | goto fail_teardown; |
391 | } | 392 | } |
392 | 393 | ||