Commit 635c4efa authored by Jeremiah Mahler's avatar Jeremiah Mahler Committed by Greg Kroah-Hartman

staging: dgnc: DGNC_VERIFY_BOARD macro in do while block

Enclose the body of the multi-statement DGNC_VERIFY_BOARD macro inside a
do - while block as per Documentation/CodingStyle.  Fixes 1 error found
by checkpatch.pl.

Cc: Lidza Louina <lidza.louina@gmail.com>
Signed-off-by: default avatarJeremiah Mahler <jmmahler@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1d3ade00
...@@ -151,6 +151,7 @@ void dgnc_remove_driver_sysfiles(struct pci_driver *dgnc_driver) ...@@ -151,6 +151,7 @@ void dgnc_remove_driver_sysfiles(struct pci_driver *dgnc_driver)
#define DGNC_VERIFY_BOARD(p, bd) \ #define DGNC_VERIFY_BOARD(p, bd) \
do { \
if (!p) \ if (!p) \
return 0; \ return 0; \
\ \
...@@ -159,6 +160,7 @@ void dgnc_remove_driver_sysfiles(struct pci_driver *dgnc_driver) ...@@ -159,6 +160,7 @@ void dgnc_remove_driver_sysfiles(struct pci_driver *dgnc_driver)
return 0; \ return 0; \
if (bd->state != BOARD_READY) \ if (bd->state != BOARD_READY) \
return 0; \ return 0; \
} while (0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment