Commit a69b06bc authored by Joe Eykholt's avatar Joe Eykholt Committed by James Bottomley

[SCSI] fcoe: libfcoe: extra semicolon in CHECK_LOGGING macros causes compile error

If using code like this:
	if (foo)
		FCOE_DBG("foo\n);
	else
		FCOE_DBG("bar\n");

one gets compile errors because FCOE_DBG expands with its own semicolon,
making one too many for the if-statement.

Remove the offending semicolon in fcoe.h and also a similar case
in libfcoe.c.
Signed-off-by: default avatarJoe Eykholt <jeykholt@cisco.com>
Signed-off-by: default avatarRobert Love <robert.w.love@intel.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent cd305ce4
...@@ -53,7 +53,7 @@ do { \ ...@@ -53,7 +53,7 @@ do { \
do { \ do { \
CMD; \ CMD; \
} while (0); \ } while (0); \
} while (0); } while (0)
#define FCOE_DBG(fmt, args...) \ #define FCOE_DBG(fmt, args...) \
FCOE_CHECK_LOGGING(FCOE_LOGGING, \ FCOE_CHECK_LOGGING(FCOE_LOGGING, \
......
...@@ -69,7 +69,7 @@ do { \ ...@@ -69,7 +69,7 @@ do { \
do { \ do { \
CMD; \ CMD; \
} while (0); \ } while (0); \
} while (0); } while (0)
#define LIBFCOE_DBG(fmt, args...) \ #define LIBFCOE_DBG(fmt, args...) \
LIBFCOE_CHECK_LOGGING(LIBFCOE_LOGGING, \ LIBFCOE_CHECK_LOGGING(LIBFCOE_LOGGING, \
......
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