Skip to contentSkip to conversation

Include: block: blk_types: Removed unneeded union from bio struct

PATCH New John Pittman 1 participant 1 message Aug 23, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Include: block: blk_types: Removed unneeded union from bio struct

In include/linux/blk_types.h a nameless, single member union exists within the bio struct. It seems to be left over from earlier, edited patches added in 3.18. Cleaned up by removing the union and the tab given to its contents.

---
 include/linux/blk_types.h | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
include/linux/blk_types.h +2 -3
index 436f43f..972ace4 100644
@@ -61,11 +61,10 @@ struct bio {
 	struct io_context	*bi_ioc;
 	struct cgroup_subsys_state *bi_css;
 #endif
-	union {
+
 #if defined(CONFIG_BLK_DEV_INTEGRITY)
-		struct bio_integrity_payload *bi_integrity; /* data integrity */
+	struct bio_integrity_payload *bi_integrity; /* data integrity */
 #endif
-	};
 
 	unsigned short		bi_vcnt;	/* how many bio_vec's */
 
Signature · 1 line
2.5.5