mirror of https://gitee.com/openkylin/linux.git
staging: kpc2000: remove unnecessary parentheses in core.c
Fixes checkpatch.pl check "Unnecessary parentheses around pdev->dev.kobj". Signed-off-by: Simon Sandström <simon@nikanor.nu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
636928fc12
commit
1c10f06940
|
@ -491,7 +491,7 @@ static int kp2000_pcie_probe(struct pci_dev *pdev,
|
||||||
/*
|
/*
|
||||||
* Step 9: Setup sysfs attributes
|
* Step 9: Setup sysfs attributes
|
||||||
*/
|
*/
|
||||||
err = sysfs_create_files(&(pdev->dev.kobj), kp_attr_list);
|
err = sysfs_create_files(&pdev->dev.kobj, kp_attr_list);
|
||||||
if (err) {
|
if (err) {
|
||||||
dev_err(&pdev->dev, "Failed to add sysfs files: %d\n", err);
|
dev_err(&pdev->dev, "Failed to add sysfs files: %d\n", err);
|
||||||
goto out9;
|
goto out9;
|
||||||
|
@ -515,7 +515,7 @@ static int kp2000_pcie_probe(struct pci_dev *pdev,
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
out10:
|
out10:
|
||||||
sysfs_remove_files(&(pdev->dev.kobj), kp_attr_list);
|
sysfs_remove_files(&pdev->dev.kobj, kp_attr_list);
|
||||||
out9:
|
out9:
|
||||||
free_irq(pcard->pdev->irq, pcard);
|
free_irq(pcard->pdev->irq, pcard);
|
||||||
out8b:
|
out8b:
|
||||||
|
@ -552,7 +552,7 @@ static void kp2000_pcie_remove(struct pci_dev *pdev)
|
||||||
mutex_lock(&pcard->sem);
|
mutex_lock(&pcard->sem);
|
||||||
kp2000_remove_cores(pcard);
|
kp2000_remove_cores(pcard);
|
||||||
mfd_remove_devices(PCARD_TO_DEV(pcard));
|
mfd_remove_devices(PCARD_TO_DEV(pcard));
|
||||||
sysfs_remove_files(&(pdev->dev.kobj), kp_attr_list);
|
sysfs_remove_files(&pdev->dev.kobj, kp_attr_list);
|
||||||
free_irq(pcard->pdev->irq, pcard);
|
free_irq(pcard->pdev->irq, pcard);
|
||||||
pci_disable_msi(pcard->pdev);
|
pci_disable_msi(pcard->pdev);
|
||||||
if (pcard->dma_bar_base) {
|
if (pcard->dma_bar_base) {
|
||||||
|
|
Loading…
Reference in New Issue