Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754604AbaKEKLW (ORCPT ); Wed, 5 Nov 2014 05:11:22 -0500 Received: from ozlabs.org ([103.22.144.67]:40242 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754000AbaKEKLS (ORCPT ); Wed, 5 Nov 2014 05:11:18 -0500 From: Michael Ellerman To: geoff@infradead.org, JBottomley@parallels.com Cc: , trivial@kernel.org Subject: [PATCH] [SCSI] ps3rom: fix error return code Date: Wed, 5 Nov 2014 21:11:10 +1100 Message-Id: <1415182270-25237-1-git-send-email-mpe@ellerman.id.au> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Julia Lawall Set the return variable to an error code as done elsewhere in the function. Signed-off-by: Julia Lawall Signed-off-by: Michael Ellerman --- drivers/scsi/ps3rom.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/