aboutsummaryrefslogtreecommitdiff
path: root/linux-core/drm_memory.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2007-11-22 16:10:36 +1000
committerDave Airlie <airlied@linux.ie>2007-11-22 16:10:36 +1000
commit5dc5c36e624e5393b5427a159ad34e5fc358cc9f (patch)
tree6d76ab39458b843c238f2c69160c16b82245ee44 /linux-core/drm_memory.c
parent7bf05708b686ec8822cc1ac7c8b647d4f7110bff (diff)
drm: major whitespace/coding style realignment with kernel
Diffstat (limited to 'linux-core/drm_memory.c')
-rw-r--r--linux-core/drm_memory.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/linux-core/drm_memory.c b/linux-core/drm_memory.c
index f68a3a3e..402a680f 100644
--- a/linux-core/drm_memory.c
+++ b/linux-core/drm_memory.c
@@ -45,13 +45,13 @@ static struct {
.lock = SPIN_LOCK_UNLOCKED
};
-static inline size_t drm_size_align(size_t size) {
-
+static inline size_t drm_size_align(size_t size)
+{
size_t tmpSize = 4;
if (size > PAGE_SIZE)
return PAGE_ALIGN(size);
- while(tmpSize < size)
+ while (tmpSize < size)
tmpSize <<= 1;
return (size_t) tmpSize;