[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190603222916.20698-3-simon@nikanor.nu>
Date: Tue, 4 Jun 2019 00:29:11 +0200
From: Simon Sandström <simon@...anor.nu>
To: gregkh@...uxfoundation.org
Cc: simon@...anor.nu, jeremy@...zel.net, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 2/7] 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@...anor.nu>
---
drivers/staging/kpc2000/kpc2000/core.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/kpc2000/kpc2000/core.c b/drivers/staging/kpc2000/kpc2000/core.c
index 356a272c0b9c..dc6940e6c320 100644
--- a/drivers/staging/kpc2000/kpc2000/core.c
+++ b/drivers/staging/kpc2000/kpc2000/core.c
@@ -491,7 +491,7 @@ static int kp2000_pcie_probe(struct pci_dev *pdev,
/*
* 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) {
dev_err(&pdev->dev, "Failed to add sysfs files: %d\n", err);
goto out9;
@@ -515,7 +515,7 @@ static int kp2000_pcie_probe(struct pci_dev *pdev,
return 0;
out10:
- sysfs_remove_files(&(pdev->dev.kobj), kp_attr_list);
+ sysfs_remove_files(&pdev->dev.kobj, kp_attr_list);
out9:
free_irq(pcard->pdev->irq, pcard);
out8b:
@@ -552,7 +552,7 @@ static void kp2000_pcie_remove(struct pci_dev *pdev)
mutex_lock(&pcard->sem);
kp2000_remove_cores(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);
pci_disable_msi(pcard->pdev);
if (pcard->dma_bar_base) {
--
2.20.1
Powered by blists - more mailing lists