atl1c: fix typo driection -> direction
diff mbox series

Message ID CAK9dXBTrpw84J0M2=Vf5a6rZNBnoZ9oScjufd4fUSyd37y8-Xw@mail.gmail.com
State Changes Requested
Delegated to: David Miller
Headers show
Series
  • atl1c: fix typo driection -> direction
Related show

Commit Message

Mark Boldyrev Jan. 1, 2019, 2:52 p.m. UTC
From 24d036bfca48c4893d3e675ddc8ff1c394d66757 Mon Sep 17 00:00:00 2001
From: Mark Boldyrev <markboldyrev@gmail.com>
Date: Tue, 1 Jan 2019 16:08:53 +0200
Subject: [PATCH] atl1c: fix typo driection -> direction

The code of the atl1c driver contains a typo which is fixed in this patch.

Signed-off-by: Mark Boldyrev <markboldyrev@gmail.com>

---
 drivers/net/ethernet/atheros/atl1c/atl1c_main.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Comments

David Miller Jan. 1, 2019, 9:45 p.m. UTC | #1
From: Mark Boldyrev <markboldyrev@gmail.com>
Date: Tue, 1 Jan 2019 16:52:02 +0200

> From 24d036bfca48c4893d3e675ddc8ff1c394d66757 Mon Sep 17 00:00:00 2001
> From: Mark Boldyrev <markboldyrev@gmail.com>
> Date: Tue, 1 Jan 2019 16:08:53 +0200
> Subject: [PATCH] atl1c: fix typo driection -> direction
> 
> The code of the atl1c driver contains a typo which is fixed in this patch.
> 
> Signed-off-by: Mark Boldyrev <markboldyrev@gmail.com>

This patch was mangled by your email client, and therefore doesn't apply
properly.

Patch
diff mbox series

diff --git a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c
b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c
index 7087b88550db..1322d2cf01d2 100644
--- a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c
+++ b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c
@@ -837,21 +837,21 @@  static int atl1c_sw_init(struct atl1c_adapter *adapter)
 static inline void atl1c_clean_buffer(struct pci_dev *pdev,
                 struct atl1c_buffer *buffer_info)
 {
-    u16 pci_driection;
+    u16 pci_direction;
     if (buffer_info->flags & ATL1C_BUFFER_FREE)
         return;
     if (buffer_info->dma) {
         if (buffer_info->flags & ATL1C_PCIMAP_FROMDEVICE)
-            pci_driection = PCI_DMA_FROMDEVICE;
+            pci_direction = PCI_DMA_FROMDEVICE;
         else
-            pci_driection = PCI_DMA_TODEVICE;
+            pci_direction = PCI_DMA_TODEVICE;

         if (buffer_info->flags & ATL1C_PCIMAP_SINGLE)
             pci_unmap_single(pdev, buffer_info->dma,
-                    buffer_info->length, pci_driection);
+                    buffer_info->length, pci_direction);
         else if (buffer_info->flags & ATL1C_PCIMAP_PAGE)
             pci_unmap_page(pdev, buffer_info->dma,
-                    buffer_info->length, pci_driection);
+                    buffer_info->length, pci_direction);
     }
     if (buffer_info->skb)
         dev_consume_skb_any(buffer_info->skb);