Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+11 −9
Original line number Diff line number Diff line
@@ -151,6 +151,7 @@ void dgnc_remove_driver_sysfiles(struct pci_driver *dgnc_driver)


#define DGNC_VERIFY_BOARD(p, bd)				\
	do {							\
		if (!p)						\
			return 0;				\
								\
@@ -159,6 +160,7 @@ void dgnc_remove_driver_sysfiles(struct pci_driver *dgnc_driver)
			return 0;				\
		if (bd->state != BOARD_READY)			\
			return 0;				\
	} while (0)