[PATCH] ata: pata_serverworks: "foo * bar" should be "foo *bar"

hanyu001@208suo.com posted 1 patch 2 years, 6 months ago
drivers/ata/pata_serverworks.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] ata: pata_serverworks: "foo * bar" should be "foo *bar"
Posted by hanyu001@208suo.com 2 years, 6 months ago
This patch fixes the checkpatch.pl error:

./drivers/ata/pata_serverworks.c:305: ERROR: "foo * bar" should be "foo 
*bar"

Signed-off-by: 	Yu Han <hanyu001@208suo.com>
---
  drivers/ata/pata_serverworks.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/ata/pata_serverworks.c 
b/drivers/ata/pata_serverworks.c
index b348784..549ff24 100644
--- a/drivers/ata/pata_serverworks.c
+++ b/drivers/ata/pata_serverworks.c
@@ -302,7 +302,7 @@ static int serverworks_fixup_csb(struct pci_dev 
*pdev)

      /* Third Channel Test */
      if (!(PCI_FUNC(pdev->devfn) & 1)) {
-        struct pci_dev *findev = NULL;
+        struct pci_dev * findev = NULL;
          u32 reg4c = 0;
          findev = pci_get_device(PCI_VENDOR_ID_SERVERWORKS,
              PCI_DEVICE_ID_SERVERWORKS_CSB5, NULL);
Re: [PATCH] ata: pata_serverworks: "foo * bar" should be "foo *bar"
Posted by Damien Le Moal 2 years, 6 months ago
On 7/19/23 10:54, hanyu001@208suo.com wrote:
> This patch fixes the checkpatch.pl error:
> 
> ./drivers/ata/pata_serverworks.c:305: ERROR: "foo * bar" should be "foo
> *bar"
> 
> Signed-off-by:     Yu Han <hanyu001@208suo.com>

Please stop sending patches like this. I will not apply such patch
unless you actually fix a bug or a compilation warning.

> ---
>  drivers/ata/pata_serverworks.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/ata/pata_serverworks.c
> b/drivers/ata/pata_serverworks.c
> index b348784..549ff24 100644
> --- a/drivers/ata/pata_serverworks.c
> +++ b/drivers/ata/pata_serverworks.c
> @@ -302,7 +302,7 @@ static int serverworks_fixup_csb(struct pci_dev *pdev)
> 
>      /* Third Channel Test */
>      if (!(PCI_FUNC(pdev->devfn) & 1)) {
> -        struct pci_dev *findev = NULL;
> +        struct pci_dev * findev = NULL;
>          u32 reg4c = 0;
>          findev = pci_get_device(PCI_VENDOR_ID_SERVERWORKS,
>              PCI_DEVICE_ID_SERVERWORKS_CSB5, NULL);

-- 
Damien Le Moal
Western Digital Research