Skip to content

Commit 4208c56

Browse files
Kanchan Joshiaxboe
authored andcommitted
block: remove bogus union
The union around bi_integrity field is pointless. Remove it. Signed-off-by: Kanchan Joshi <joshi.k@samsung.com> Link: https://lore.kernel.org/r/20240917045457.429698-1-joshi.k@samsung.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent aa3d8a3 commit 4208c56

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

include/linux/blk_types.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,9 @@ struct bio {
248248
struct bio_crypt_ctx *bi_crypt_context;
249249
#endif
250250

251-
union {
252251
#if defined(CONFIG_BLK_DEV_INTEGRITY)
253-
struct bio_integrity_payload *bi_integrity; /* data integrity */
252+
struct bio_integrity_payload *bi_integrity; /* data integrity */
254253
#endif
255-
};
256254

257255
unsigned short bi_vcnt; /* how many bio_vec's */
258256

0 commit comments

Comments
 (0)