diff options
Diffstat (limited to 'net/9p/trans_virtio.c')
-rw-r--r-- | net/9p/trans_virtio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/9p/trans_virtio.c b/net/9p/trans_virtio.c index 0117b9fb8480..9e3d81cb9f08 100644 --- a/net/9p/trans_virtio.c +++ b/net/9p/trans_virtio.c | |||
@@ -183,8 +183,7 @@ pack_sg_list(struct scatterlist *sg, int start, int limit, char *data, | |||
183 | sg_set_buf(&sg[index++], data, s); | 183 | sg_set_buf(&sg[index++], data, s); |
184 | count -= s; | 184 | count -= s; |
185 | data += s; | 185 | data += s; |
186 | if (index > limit) | 186 | BUG_ON(index > limit); |
187 | BUG(); | ||
188 | } | 187 | } |
189 | 188 | ||
190 | return index-start; | 189 | return index-start; |