diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2008-12-14 15:45:45 -0500 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2009-03-24 15:56:39 -0400 |
commit | 2dbd7d7e2327b0c2cc4e2de903e1cfa19980a504 (patch) | |
tree | c0efb5bbd26bc2e18a61bf44d0c53db9494a096c /drivers/firewire/fw-iso.c | |
parent | c490a6dec6cc1b7f0eab56b9fbd565129b3dea2e (diff) |
firewire: standardize a variable name
"ret" is the new "retval".
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire/fw-iso.c')
-rw-r--r-- | drivers/firewire/fw-iso.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/firewire/fw-iso.c b/drivers/firewire/fw-iso.c index e14c03dc0065..cb32b20da9a0 100644 --- a/drivers/firewire/fw-iso.c +++ b/drivers/firewire/fw-iso.c | |||
@@ -32,7 +32,7 @@ int | |||
32 | fw_iso_buffer_init(struct fw_iso_buffer *buffer, struct fw_card *card, | 32 | fw_iso_buffer_init(struct fw_iso_buffer *buffer, struct fw_card *card, |
33 | int page_count, enum dma_data_direction direction) | 33 | int page_count, enum dma_data_direction direction) |
34 | { | 34 | { |
35 | int i, j, retval = -ENOMEM; | 35 | int i, j; |
36 | dma_addr_t address; | 36 | dma_addr_t address; |
37 | 37 | ||
38 | buffer->page_count = page_count; | 38 | buffer->page_count = page_count; |
@@ -69,19 +69,19 @@ fw_iso_buffer_init(struct fw_iso_buffer *buffer, struct fw_card *card, | |||
69 | kfree(buffer->pages); | 69 | kfree(buffer->pages); |
70 | out: | 70 | out: |
71 | buffer->pages = NULL; | 71 | buffer->pages = NULL; |
72 | return retval; | 72 | return -ENOMEM; |
73 | } | 73 | } |
74 | 74 | ||
75 | int fw_iso_buffer_map(struct fw_iso_buffer *buffer, struct vm_area_struct *vma) | 75 | int fw_iso_buffer_map(struct fw_iso_buffer *buffer, struct vm_area_struct *vma) |
76 | { | 76 | { |
77 | unsigned long uaddr; | 77 | unsigned long uaddr; |
78 | int i, retval; | 78 | int i, ret; |
79 | 79 | ||
80 | uaddr = vma->vm_start; | 80 | uaddr = vma->vm_start; |
81 | for (i = 0; i < buffer->page_count; i++) { | 81 | for (i = 0; i < buffer->page_count; i++) { |
82 | retval = vm_insert_page(vma, uaddr, buffer->pages[i]); | 82 | ret = vm_insert_page(vma, uaddr, buffer->pages[i]); |
83 | if (retval) | 83 | if (ret) |
84 | return retval; | 84 | return ret; |
85 | uaddr += PAGE_SIZE; | 85 | uaddr += PAGE_SIZE; |
86 | } | 86 | } |
87 | 87 | ||