Skip to contentSkip to conversation

block: remove unwanted semicolons

PATCH Superseded Namhyung Kim 2 participants 2 messages May 1, 2011 – May 2, 2011 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block: remove unwanted semicolons

Since those defined functions require additional semicolon from the caller, they could cause potential syntax errors when used in if-else statements.

Cc Martin K. Petersen <[email protected]>
---
 include/linux/blkdev.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
include/linux/blkdev.h +2 -2
index 2ad95fa1d130..5560454534c6 100644
@@ -1271,8 +1271,8 @@ queue_max_integrity_segments(struct request_queue *q)
 #define blk_get_integrity(a)			(0)
 #define blk_integrity_compare(a, b)		(0)
 #define blk_integrity_register(a, b)		(0)
-#define blk_integrity_unregister(a)		do { } while (0);
-#define blk_queue_max_integrity_segments(a, b)	do { } while (0);
+#define blk_integrity_unregister(a)		do { } while (0)
+#define blk_queue_max_integrity_segments(a, b)	do { } while (0)
 #define queue_max_integrity_segments(a)		(0)
 #define blk_integrity_merge_rq(a, b, c)		(0)
 #define blk_integrity_merge_bio(a, b, c)	(0)
Signature · 1 line
1.7.5
Acked-by on v1 1/1
#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Namhyung" == Namhyung Kim <[email protected]> writes:

Namhyung> Since those defined functions require additional semicolon Namhyung> from the caller, they could cause potential syntax errors when Namhyung> used in if-else statements.

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering