diff options
author | Joe Eykholt <jeykholt@cisco.com> | 2009-08-25 16:58:42 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-09-05 10:47:34 -0400 |
commit | a69b06bc5e7b153043db8984564b731f99e014fc (patch) | |
tree | dc80fe815f5045fb01414fc352c237dbcee4fa4f | |
parent | cd305ce41be1615dfc72892e0642c6b880f58d95 (diff) |
[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: Joe Eykholt <jeykholt@cisco.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
-rw-r--r-- | drivers/scsi/fcoe/fcoe.h | 2 | ||||
-rw-r--r-- | drivers/scsi/fcoe/libfcoe.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/fcoe/fcoe.h b/drivers/scsi/fcoe/fcoe.h index 68b9f855073b..65120e21f5c4 100644 --- a/drivers/scsi/fcoe/fcoe.h +++ b/drivers/scsi/fcoe/fcoe.h | |||
@@ -53,7 +53,7 @@ do { \ | |||
53 | do { \ | 53 | do { \ |
54 | CMD; \ | 54 | CMD; \ |
55 | } while (0); \ | 55 | } while (0); \ |
56 | } while (0); | 56 | } while (0) |
57 | 57 | ||
58 | #define FCOE_DBG(fmt, args...) \ | 58 | #define FCOE_DBG(fmt, args...) \ |
59 | FCOE_CHECK_LOGGING(FCOE_LOGGING, \ | 59 | FCOE_CHECK_LOGGING(FCOE_LOGGING, \ |
diff --git a/drivers/scsi/fcoe/libfcoe.c b/drivers/scsi/fcoe/libfcoe.c index 4db719d6ada1..d0b5208e1a45 100644 --- a/drivers/scsi/fcoe/libfcoe.c +++ b/drivers/scsi/fcoe/libfcoe.c | |||
@@ -69,7 +69,7 @@ do { \ | |||
69 | do { \ | 69 | do { \ |
70 | CMD; \ | 70 | CMD; \ |
71 | } while (0); \ | 71 | } while (0); \ |
72 | } while (0); | 72 | } while (0) |
73 | 73 | ||
74 | #define LIBFCOE_DBG(fmt, args...) \ | 74 | #define LIBFCOE_DBG(fmt, args...) \ |
75 | LIBFCOE_CHECK_LOGGING(LIBFCOE_LOGGING, \ | 75 | LIBFCOE_CHECK_LOGGING(LIBFCOE_LOGGING, \ |