diff options
-rw-r--r-- | include/linux/blkdev.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 49b7a4c31a6d..c7a3ab575c24 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -836,12 +836,7 @@ static inline int bdev_hardsect_size(struct block_device *bdev) | |||
836 | 836 | ||
837 | static inline int queue_dma_alignment(struct request_queue *q) | 837 | static inline int queue_dma_alignment(struct request_queue *q) |
838 | { | 838 | { |
839 | int retval = 511; | 839 | return q ? q->dma_alignment : 511; |
840 | |||
841 | if (q && q->dma_alignment) | ||
842 | retval = q->dma_alignment; | ||
843 | |||
844 | return retval; | ||
845 | } | 840 | } |
846 | 841 | ||
847 | /* assumes size > 256 */ | 842 | /* assumes size > 256 */ |