diff options
author | Dave Jones <davej@redhat.com> | 2006-02-28 00:54:25 -0500 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2006-02-28 00:54:25 -0500 |
commit | 6a92a4e0d201aea6d7c83f100d77310676b2e049 (patch) | |
tree | 89a17578d18b1cc3d653c75f00da6455e4bdcaa7 /drivers/char/agp/alpha-agp.c | |
parent | a8b76b491510b7591c584838d0d7922f9ffe5c2c (diff) |
[AGPGART] Lots of CodingStyle/whitespace cleanups.
Eliminate trailing whitespace.
s/if(/if (/
s/for(/for (/
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'drivers/char/agp/alpha-agp.c')
-rw-r--r-- | drivers/char/agp/alpha-agp.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/char/agp/alpha-agp.c b/drivers/char/agp/alpha-agp.c index a072d32005a4..2b5838e64751 100644 --- a/drivers/char/agp/alpha-agp.c +++ b/drivers/char/agp/alpha-agp.c | |||
@@ -23,8 +23,9 @@ static struct page *alpha_core_agp_vm_nopage(struct vm_area_struct *vma, | |||
23 | dma_addr = address - vma->vm_start + agp->aperture.bus_base; | 23 | dma_addr = address - vma->vm_start + agp->aperture.bus_base; |
24 | pa = agp->ops->translate(agp, dma_addr); | 24 | pa = agp->ops->translate(agp, dma_addr); |
25 | 25 | ||
26 | if (pa == (unsigned long)-EINVAL) return NULL; /* no translation */ | 26 | if (pa == (unsigned long)-EINVAL) |
27 | 27 | return NULL; /* no translation */ | |
28 | |||
28 | /* | 29 | /* |
29 | * Get the page, inc the use count, and return it | 30 | * Get the page, inc the use count, and return it |
30 | */ | 31 | */ |
@@ -89,7 +90,7 @@ static void alpha_core_agp_enable(struct agp_bridge_data *bridge, u32 mode) | |||
89 | agp_device_command(agp->mode.lw, 0); | 90 | agp_device_command(agp->mode.lw, 0); |
90 | } | 91 | } |
91 | 92 | ||
92 | static int alpha_core_agp_insert_memory(struct agp_memory *mem, off_t pg_start, | 93 | static int alpha_core_agp_insert_memory(struct agp_memory *mem, off_t pg_start, |
93 | int type) | 94 | int type) |
94 | { | 95 | { |
95 | alpha_agp_info *agp = agp_bridge->dev_private_data; | 96 | alpha_agp_info *agp = agp_bridge->dev_private_data; |
@@ -98,7 +99,8 @@ static int alpha_core_agp_insert_memory(struct agp_memory *mem, off_t pg_start, | |||
98 | 99 | ||
99 | temp = agp_bridge->current_size; | 100 | temp = agp_bridge->current_size; |
100 | num_entries = A_SIZE_FIX(temp)->num_entries; | 101 | num_entries = A_SIZE_FIX(temp)->num_entries; |
101 | if ((pg_start + mem->page_count) > num_entries) return -EINVAL; | 102 | if ((pg_start + mem->page_count) > num_entries) |
103 | return -EINVAL; | ||
102 | 104 | ||
103 | status = agp->ops->bind(agp, pg_start, mem); | 105 | status = agp->ops->bind(agp, pg_start, mem); |
104 | mb(); | 106 | mb(); |
@@ -107,7 +109,7 @@ static int alpha_core_agp_insert_memory(struct agp_memory *mem, off_t pg_start, | |||
107 | return status; | 109 | return status; |
108 | } | 110 | } |
109 | 111 | ||
110 | static int alpha_core_agp_remove_memory(struct agp_memory *mem, off_t pg_start, | 112 | static int alpha_core_agp_remove_memory(struct agp_memory *mem, off_t pg_start, |
111 | int type) | 113 | int type) |
112 | { | 114 | { |
113 | alpha_agp_info *agp = agp_bridge->dev_private_data; | 115 | alpha_agp_info *agp = agp_bridge->dev_private_data; |
@@ -125,7 +127,7 @@ struct agp_bridge_driver alpha_core_agp_driver = { | |||
125 | .size_type = FIXED_APER_SIZE, | 127 | .size_type = FIXED_APER_SIZE, |
126 | .cant_use_aperture = 1, | 128 | .cant_use_aperture = 1, |
127 | .masks = NULL, | 129 | .masks = NULL, |
128 | 130 | ||
129 | .fetch_size = alpha_core_agp_fetch_size, | 131 | .fetch_size = alpha_core_agp_fetch_size, |
130 | .configure = alpha_core_agp_configure, | 132 | .configure = alpha_core_agp_configure, |
131 | .agp_enable = alpha_core_agp_enable, | 133 | .agp_enable = alpha_core_agp_enable, |