ps3rom: fix error return code
Subsystems (3)
Michael Ellerman
reviewerPATCH 1/1 ps3rom: fix error return code
From: Julia Lawall <[email protected]>
Set the return variable to an error code as done elsewhere in the function.
Signed-off-by Julia Lawall <[email protected]>
Signed-off-by Michael Ellerman <[email protected]>
--- drivers/scsi/ps3rom.c | 1 + 1 file changed, 1 insertion(+)
drivers/scsi/ps3rom.c +1 -0
@@ -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; }
Signature · 1 line
1.9.1
Quoted 15 lines · Michael Ellerman
From: Julia Lawall <[email protected]>
Set the return variable to an error code as done elsewhere in the function.
Signed-off-by Julia Lawall <[email protected]>Signed-off-by Michael Ellerman <[email protected]>--- drivers/scsi/ps3rom.c | 1 + 1 file changed, 1 insertion(+)drivers/scsi/ps3rom.c +0
-0
drivers/scsi/ps3rom.c static int ps3rom_probe(struct ps3_system_bus_device *_dev) · line 393
Quoted 7 lines
drivers/scsi/ps3rom.c +1
-0@@ -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; }
Looks OK. James, please apply.
Acked-by Geoff Levand <[email protected]>