Commit d2116990 authored by Nathan Chancellor's avatar Nathan Chancellor Committed by Greg Kroah-Hartman

staging: android: vsoc: Fix ending '(' warnings in vsoc_probe_device

Fixes checkpatch.pl warnings about lines ending with parentheses.
Signed-off-by: default avatarNathan Chancellor <natechancellor@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3ca4ce0e
...@@ -841,8 +841,8 @@ static int vsoc_probe_device(struct pci_dev *pdev, ...@@ -841,8 +841,8 @@ static int vsoc_probe_device(struct pci_dev *pdev,
vsoc_dev.regions = (struct vsoc_device_region __force *) vsoc_dev.regions = (struct vsoc_device_region __force *)
((void *)vsoc_dev.layout + ((void *)vsoc_dev.layout +
vsoc_dev.layout->vsoc_region_desc_offset); vsoc_dev.layout->vsoc_region_desc_offset);
vsoc_dev.msix_entries = kcalloc( vsoc_dev.msix_entries =
vsoc_dev.layout->region_count, kcalloc(vsoc_dev.layout->region_count,
sizeof(vsoc_dev.msix_entries[0]), GFP_KERNEL); sizeof(vsoc_dev.msix_entries[0]), GFP_KERNEL);
if (!vsoc_dev.msix_entries) { if (!vsoc_dev.msix_entries) {
dev_err(&vsoc_dev.dev->dev, dev_err(&vsoc_dev.dev->dev,
...@@ -850,8 +850,8 @@ static int vsoc_probe_device(struct pci_dev *pdev, ...@@ -850,8 +850,8 @@ static int vsoc_probe_device(struct pci_dev *pdev,
vsoc_remove_device(pdev); vsoc_remove_device(pdev);
return -ENOSPC; return -ENOSPC;
} }
vsoc_dev.regions_data = kcalloc( vsoc_dev.regions_data =
vsoc_dev.layout->region_count, kcalloc(vsoc_dev.layout->region_count,
sizeof(vsoc_dev.regions_data[0]), GFP_KERNEL); sizeof(vsoc_dev.regions_data[0]), GFP_KERNEL);
if (!vsoc_dev.regions_data) { if (!vsoc_dev.regions_data) {
dev_err(&vsoc_dev.dev->dev, dev_err(&vsoc_dev.dev->dev,
...@@ -913,8 +913,8 @@ static int vsoc_probe_device(struct pci_dev *pdev, ...@@ -913,8 +913,8 @@ static int vsoc_probe_device(struct pci_dev *pdev,
name_sz); name_sz);
dev_info(&pdev->dev, "region %d name=%s\n", dev_info(&pdev->dev, "region %d name=%s\n",
i, vsoc_dev.regions_data[i].name); i, vsoc_dev.regions_data[i].name);
init_waitqueue_head( init_waitqueue_head
&vsoc_dev.regions_data[i].interrupt_wait_queue); (&vsoc_dev.regions_data[i].interrupt_wait_queue);
init_waitqueue_head(&vsoc_dev.regions_data[i].futex_wait_queue); init_waitqueue_head(&vsoc_dev.regions_data[i].futex_wait_queue);
vsoc_dev.regions_data[i].incoming_signalled = vsoc_dev.regions_data[i].incoming_signalled =
shm_off_to_virtual_addr(region->region_begin_offset) + shm_off_to_virtual_addr(region->region_begin_offset) +
...@@ -922,8 +922,7 @@ static int vsoc_probe_device(struct pci_dev *pdev, ...@@ -922,8 +922,7 @@ static int vsoc_probe_device(struct pci_dev *pdev,
vsoc_dev.regions_data[i].outgoing_signalled = vsoc_dev.regions_data[i].outgoing_signalled =
shm_off_to_virtual_addr(region->region_begin_offset) + shm_off_to_virtual_addr(region->region_begin_offset) +
g_to_h_signal_table->interrupt_signalled_offset; g_to_h_signal_table->interrupt_signalled_offset;
result = request_irq( result = request_irq(vsoc_dev.msix_entries[i].vector,
vsoc_dev.msix_entries[i].vector,
vsoc_interrupt, 0, vsoc_interrupt, 0,
vsoc_dev.regions_data[i].name, vsoc_dev.regions_data[i].name,
vsoc_dev.regions_data + i); vsoc_dev.regions_data + i);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment