Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bio.h: Remove unused conditional code

The whole bio_integrity() definition is inside an #ifdef
CONFIG_BLK_DEV_INTEGRITY, there's no need for the conditional code.

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>

authored by

Alberto Bertogli and committed by
Jens Axboe
8deaf721 d00e29fd

+1 -8
+1 -8
include/linux/bio.h
··· 457 457 #define bip_for_each_vec(bvl, bip, i) \ 458 458 __bip_for_each_vec(bvl, bip, i, (bip)->bip_idx) 459 459 460 - static inline int bio_integrity(struct bio *bio) 461 - { 462 - #if defined(CONFIG_BLK_DEV_INTEGRITY) 463 - return bio->bi_integrity != NULL; 464 - #else 465 - return 0; 466 - #endif 467 - } 460 + #define bio_integrity(bio) (bio->bi_integrity != NULL) 468 461 469 462 extern struct bio_integrity_payload *bio_integrity_alloc_bioset(struct bio *, gfp_t, unsigned int, struct bio_set *); 470 463 extern struct bio_integrity_payload *bio_integrity_alloc(struct bio *, gfp_t, unsigned int);