diff options
author | Alberto Bertogli <albertito@blitiri.com.ar> | 2008-10-02 06:46:53 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-10-09 02:56:21 -0400 |
commit | 8deaf7210728c453295dc1cb2a5b66c68183ac85 (patch) | |
tree | bb4bead2773c733e5164a44b784c9601b458821d /include/linux/bio.h | |
parent | d00e29fd99dd63d1c51917604e35dee824ed567f (diff) |
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>
Diffstat (limited to 'include/linux/bio.h')
-rw-r--r-- | include/linux/bio.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h index 6520ee1a3f6d..98c2d0570657 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h | |||
@@ -457,14 +457,7 @@ static inline int bio_has_data(struct bio *bio) | |||
457 | #define bip_for_each_vec(bvl, bip, i) \ | 457 | #define bip_for_each_vec(bvl, bip, i) \ |
458 | __bip_for_each_vec(bvl, bip, i, (bip)->bip_idx) | 458 | __bip_for_each_vec(bvl, bip, i, (bip)->bip_idx) |
459 | 459 | ||
460 | static inline int bio_integrity(struct bio *bio) | 460 | #define bio_integrity(bio) (bio->bi_integrity != NULL) |
461 | { | ||
462 | #if defined(CONFIG_BLK_DEV_INTEGRITY) | ||
463 | return bio->bi_integrity != NULL; | ||
464 | #else | ||
465 | return 0; | ||
466 | #endif | ||
467 | } | ||
468 | 461 | ||
469 | extern struct bio_integrity_payload *bio_integrity_alloc_bioset(struct bio *, gfp_t, unsigned int, struct bio_set *); | 462 | extern struct bio_integrity_payload *bio_integrity_alloc_bioset(struct bio *, gfp_t, unsigned int, struct bio_set *); |
470 | extern struct bio_integrity_payload *bio_integrity_alloc(struct bio *, gfp_t, unsigned int); | 463 | extern struct bio_integrity_payload *bio_integrity_alloc(struct bio *, gfp_t, unsigned int); |