diff options
Diffstat (limited to 'drivers/misc/ibmasm/module.c')
-rw-r--r-- | drivers/misc/ibmasm/module.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/misc/ibmasm/module.c b/drivers/misc/ibmasm/module.c index c5a456b0a564..e914b8c80943 100644 --- a/drivers/misc/ibmasm/module.c +++ b/drivers/misc/ibmasm/module.c | |||
@@ -94,12 +94,14 @@ static int ibmasm_init_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
94 | snprintf(sp->dirname, IBMASM_NAME_SIZE, "%d", sp->number); | 94 | snprintf(sp->dirname, IBMASM_NAME_SIZE, "%d", sp->number); |
95 | snprintf(sp->devname, IBMASM_NAME_SIZE, "%s%d", DRIVER_NAME, sp->number); | 95 | snprintf(sp->devname, IBMASM_NAME_SIZE, "%s%d", DRIVER_NAME, sp->number); |
96 | 96 | ||
97 | if (ibmasm_event_buffer_init(sp)) { | 97 | result = ibmasm_event_buffer_init(sp); |
98 | if (result) { | ||
98 | dev_err(sp->dev, "Failed to allocate event buffer\n"); | 99 | dev_err(sp->dev, "Failed to allocate event buffer\n"); |
99 | goto error_eventbuffer; | 100 | goto error_eventbuffer; |
100 | } | 101 | } |
101 | 102 | ||
102 | if (ibmasm_heartbeat_init(sp)) { | 103 | result = ibmasm_heartbeat_init(sp); |
104 | if (result) { | ||
103 | dev_err(sp->dev, "Failed to allocate heartbeat command\n"); | 105 | dev_err(sp->dev, "Failed to allocate heartbeat command\n"); |
104 | goto error_heartbeat; | 106 | goto error_heartbeat; |
105 | } | 107 | } |