mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
Merge branch 'for-linus' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
Pull trivial tree updates from Jiri Kosina: "The usual rocket-science from trivial tree for 4.15" * 'for-linus' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: MAINTAINERS: relinquish kconfig MAINTAINERS: Update my email address treewide: Fix typos in Kconfig kfifo: Fix comments init/Kconfig: Fix module signing document location misc: ibmasm: Return error on error path HID: logitech-hidpp: fix mistake in printk, "feeback" -> "feedback" MAINTAINERS: Correct path to uDraw PS3 driver tracing: Fix doc mistakes in trace sample tracing: Kconfig text fixes for CONFIG_HWLAT_TRACER MIPS: Alchemy: Remove reverted CONFIG_NETLINK_MMAP from db1xxx_defconfig mm/huge_memory.c: fixup grammar in comment lib/xz: Add fall-through comments to a switch statement
This commit is contained in:
commit
9682b3dea2
26 changed files with 62 additions and 46 deletions
|
|
@ -155,7 +155,7 @@ int ibmasm_event_buffer_init(struct service_processor *sp)
|
|||
|
||||
buffer = kmalloc(sizeof(struct event_buffer), GFP_KERNEL);
|
||||
if (!buffer)
|
||||
return 1;
|
||||
return -ENOMEM;
|
||||
|
||||
buffer->next_index = 0;
|
||||
buffer->next_serial_number = 1;
|
||||
|
|
|
|||
|
|
@ -94,12 +94,14 @@ static int ibmasm_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
|
|||
snprintf(sp->dirname, IBMASM_NAME_SIZE, "%d", sp->number);
|
||||
snprintf(sp->devname, IBMASM_NAME_SIZE, "%s%d", DRIVER_NAME, sp->number);
|
||||
|
||||
if (ibmasm_event_buffer_init(sp)) {
|
||||
result = ibmasm_event_buffer_init(sp);
|
||||
if (result) {
|
||||
dev_err(sp->dev, "Failed to allocate event buffer\n");
|
||||
goto error_eventbuffer;
|
||||
}
|
||||
|
||||
if (ibmasm_heartbeat_init(sp)) {
|
||||
result = ibmasm_heartbeat_init(sp);
|
||||
if (result) {
|
||||
dev_err(sp->dev, "Failed to allocate heartbeat command\n");
|
||||
goto error_heartbeat;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue