Skip to content


bio.h: Remove unused conditional code
Browse files Browse the repository at this point in the history
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 <>
Signed-off-by: Jens Axboe <>
  • Loading branch information
albertito authored and Jens Axboe committed Oct 9, 2008
1 parent d00e29f commit 8deaf72
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions include/linux/bio.h
Expand Up @@ -457,14 +457,7 @@ static inline int bio_has_data(struct bio *bio)
#define bip_for_each_vec(bvl, bip, i) \
__bip_for_each_vec(bvl, bip, i, (bip)->bip_idx)

static inline int bio_integrity(struct bio *bio)
return bio->bi_integrity != NULL;
return 0;
#define bio_integrity(bio) (bio->bi_integrity != NULL)

extern struct bio_integrity_payload *bio_integrity_alloc_bioset(struct bio *, gfp_t, unsigned int, struct bio_set *);
extern struct bio_integrity_payload *bio_integrity_alloc(struct bio *, gfp_t, unsigned int);
Expand Down

0 comments on commit 8deaf72

Please sign in to comment.