staging: rtlwifi: remove duplicated macros in comments
PATCH 1/1 staging: rtlwifi: remove duplicated macros in comments
Removing a comment that duplicates definitions for pci_power_t enumeration, and pointing to the relevant header file (current comment is also missing PCI_POWER_ERROR).
Signed-off-by Matthew Giassa <[email protected]>
--- drivers/staging/rtlwifi/pci.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/staging/rtlwifi/pci.c +1 -6
@@ -2456,12 +2456,7 @@ void rtl_pci_disconnect(struct pci_dev *pdev)#ifdef CONFIG_PM_SLEEP /*************************************** * kernel pci power state define: -* PCI_D0 ((pci_power_t __force) 0) -* PCI_D1 ((pci_power_t __force) 1) -* PCI_D2 ((pci_power_t __force) 2) -* PCI_D3hot ((pci_power_t __force) 3) -* PCI_D3cold ((pci_power_t __force) 4) -* PCI_UNKNOWN ((pci_power_t __force) 5) +* Refer to include/linux/pci.h * This function is called when system * goes into suspend state mac80211 will
Signature · 1 line
2.7.4
Greg KH
maintainerQuoted 14 lines · Matthew Giassa
Removing a comment that duplicates definitions for
pci_power_tenumeration, and pointing to the relevant header file (current comment is also missingPCI_POWER_ERROR).Signed-off-by Matthew Giassa <[email protected]>--- drivers/staging/rtlwifi/pci.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)drivers/staging/rtlwifi/pci.c +0
-0
drivers/staging/rtlwifi/pci.c void rtl_pci_disconnect(struct pci_dev *pdev) · line 2459
Quoted 10 lines
drivers/staging/rtlwifi/pci.c +1
-6@@ -2456,12 +2456,7 @@ void rtl_pci_disconnect(struct pci_dev *pdev)#ifdef CONFIG_PM_SLEEP /*************************************** * kernel pci power state define: -* PCI_D0 ((pci_power_t __force) 0) -* PCI_D1 ((pci_power_t __force) 1) -* PCI_D2 ((pci_power_t __force) 2) -* PCI_D3hot ((pci_power_t __force) 3) -* PCI_D3cold ((pci_power_t __force) 4) -* PCI_UNKNOWN ((pci_power_t __force) 5) +* Refer to include/linux/pci.h
That's really vague, how about just deleting these lines, and the previous one as well?
thanks,
greg k-h