diff options
-rw-r--r-- | drivers/misc/genwqe/card_utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/genwqe/card_utils.c b/drivers/misc/genwqe/card_utils.c index 8f2e6442d88b..8679e0bd8ec2 100644 --- a/drivers/misc/genwqe/card_utils.c +++ b/drivers/misc/genwqe/card_utils.c | |||
@@ -453,7 +453,7 @@ int genwqe_setup_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl, | |||
453 | s += 8; /* continue 8 elements further */ | 453 | s += 8; /* continue 8 elements further */ |
454 | } | 454 | } |
455 | fixup: | 455 | fixup: |
456 | if (j == 1) { /* combining happend on last entry! */ | 456 | if (j == 1) { /* combining happened on last entry! */ |
457 | s -= 8; /* full shift needed on previous sgl block */ | 457 | s -= 8; /* full shift needed on previous sgl block */ |
458 | j = 7; /* shift all elements */ | 458 | j = 7; /* shift all elements */ |
459 | } | 459 | } |
@@ -471,7 +471,7 @@ int genwqe_setup_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl, | |||
471 | * genwqe_free_sync_sgl() - Free memory for sgl and overlapping pages | 471 | * genwqe_free_sync_sgl() - Free memory for sgl and overlapping pages |
472 | * | 472 | * |
473 | * After the DMA transfer has been completed we free the memory for | 473 | * After the DMA transfer has been completed we free the memory for |
474 | * the sgl and the cached pages. Data is being transfered from cached | 474 | * the sgl and the cached pages. Data is being transferred from cached |
475 | * pages into user-space buffers. | 475 | * pages into user-space buffers. |
476 | */ | 476 | */ |
477 | int genwqe_free_sync_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl) | 477 | int genwqe_free_sync_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl) |