aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/net/qeth_eddp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390/net/qeth_eddp.c')
-rw-r--r--drivers/s390/net/qeth_eddp.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/drivers/s390/net/qeth_eddp.c b/drivers/s390/net/qeth_eddp.c
index 70108fb16906..e3c268cfbffe 100644
--- a/drivers/s390/net/qeth_eddp.c
+++ b/drivers/s390/net/qeth_eddp.c
@@ -159,13 +159,15 @@ qeth_eddp_fill_buffer(struct qeth_qdio_out_q *queue,
159 buffer = buf->buffer; 159 buffer = buf->buffer;
160 /* fill one skb into buffer */ 160 /* fill one skb into buffer */
161 for (i = 0; i < ctx->elements_per_skb; ++i){ 161 for (i = 0; i < ctx->elements_per_skb; ++i){
162 buffer->element[buf->next_element_to_fill].addr = 162 if (ctx->elements[element].length != 0) {
163 ctx->elements[element].addr; 163 buffer->element[buf->next_element_to_fill].
164 buffer->element[buf->next_element_to_fill].length = 164 addr = ctx->elements[element].addr;
165 ctx->elements[element].length; 165 buffer->element[buf->next_element_to_fill].
166 buffer->element[buf->next_element_to_fill].flags = 166 length = ctx->elements[element].length;
167 ctx->elements[element].flags; 167 buffer->element[buf->next_element_to_fill].
168 buf->next_element_to_fill++; 168 flags = ctx->elements[element].flags;
169 buf->next_element_to_fill++;
170 }
169 element++; 171 element++;
170 elements--; 172 elements--;
171 } 173 }