diff options
Diffstat (limited to 'lib/scatterlist.c')
-rw-r--r-- | lib/scatterlist.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/scatterlist.c b/lib/scatterlist.c index 1642fd507a96..7c6096a71704 100644 --- a/lib/scatterlist.c +++ b/lib/scatterlist.c | |||
@@ -24,9 +24,6 @@ | |||
24 | **/ | 24 | **/ |
25 | struct scatterlist *sg_next(struct scatterlist *sg) | 25 | struct scatterlist *sg_next(struct scatterlist *sg) |
26 | { | 26 | { |
27 | #ifdef CONFIG_DEBUG_SG | ||
28 | BUG_ON(sg->sg_magic != SG_MAGIC); | ||
29 | #endif | ||
30 | if (sg_is_last(sg)) | 27 | if (sg_is_last(sg)) |
31 | return NULL; | 28 | return NULL; |
32 | 29 | ||
@@ -111,10 +108,7 @@ struct scatterlist *sg_last(struct scatterlist *sgl, unsigned int nents) | |||
111 | for_each_sg(sgl, sg, nents, i) | 108 | for_each_sg(sgl, sg, nents, i) |
112 | ret = sg; | 109 | ret = sg; |
113 | 110 | ||
114 | #ifdef CONFIG_DEBUG_SG | ||
115 | BUG_ON(sgl[0].sg_magic != SG_MAGIC); | ||
116 | BUG_ON(!sg_is_last(ret)); | 111 | BUG_ON(!sg_is_last(ret)); |
117 | #endif | ||
118 | return ret; | 112 | return ret; |
119 | } | 113 | } |
120 | EXPORT_SYMBOL(sg_last); | 114 | EXPORT_SYMBOL(sg_last); |