Commit 9516b030b484fc99cf24213caf88df01f99248dd
1 parent
c725801292
Exists in
master
and in
40 other branches
agp: more boolean conversions.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Showing 6 changed files with 15 additions and 15 deletions Side-by-side Diff
drivers/char/agp/compat_ioctl.c
drivers/char/agp/frontend.c
... | ... | @@ -395,7 +395,7 @@ |
395 | 395 | |
396 | 396 | if (agp_fe.current_controller == controller) { |
397 | 397 | agp_fe.current_controller = NULL; |
398 | - agp_fe.backend_acquired = FALSE; | |
398 | + agp_fe.backend_acquired = false; | |
399 | 399 | agp_backend_release(agp_bridge); |
400 | 400 | } |
401 | 401 | kfree(controller); |
... | ... | @@ -443,7 +443,7 @@ |
443 | 443 | } |
444 | 444 | |
445 | 445 | agp_fe.current_controller = NULL; |
446 | - agp_fe.used_by_controller = FALSE; | |
446 | + agp_fe.used_by_controller = false; | |
447 | 447 | agp_backend_release(agp_bridge); |
448 | 448 | } |
449 | 449 | |
... | ... | @@ -573,7 +573,7 @@ |
573 | 573 | |
574 | 574 | mutex_lock(&(agp_fe.agp_mutex)); |
575 | 575 | |
576 | - if (agp_fe.backend_acquired != TRUE) | |
576 | + if (agp_fe.backend_acquired != true) | |
577 | 577 | goto out_eperm; |
578 | 578 | |
579 | 579 | if (!(test_bit(AGP_FF_IS_VALID, &priv->access_flags))) |
... | ... | @@ -768,7 +768,7 @@ |
768 | 768 | |
769 | 769 | atomic_inc(&agp_bridge->agp_in_use); |
770 | 770 | |
771 | - agp_fe.backend_acquired = TRUE; | |
771 | + agp_fe.backend_acquired = true; | |
772 | 772 | |
773 | 773 | controller = agp_find_controller_by_pid(priv->my_pid); |
774 | 774 | |
... | ... | @@ -778,7 +778,7 @@ |
778 | 778 | controller = agp_create_controller(priv->my_pid); |
779 | 779 | |
780 | 780 | if (controller == NULL) { |
781 | - agp_fe.backend_acquired = FALSE; | |
781 | + agp_fe.backend_acquired = false; | |
782 | 782 | agp_backend_release(agp_bridge); |
783 | 783 | return -ENOMEM; |
784 | 784 | } |
... | ... | @@ -981,7 +981,7 @@ |
981 | 981 | ret_val = -EINVAL; |
982 | 982 | goto ioctl_out; |
983 | 983 | } |
984 | - if ((agp_fe.backend_acquired != TRUE) && | |
984 | + if ((agp_fe.backend_acquired != true) && | |
985 | 985 | (cmd != AGPIOC_ACQUIRE)) { |
986 | 986 | ret_val = -EBUSY; |
987 | 987 | goto ioctl_out; |
drivers/char/agp/generic.c
... | ... | @@ -96,13 +96,13 @@ |
96 | 96 | void agp_alloc_page_array(size_t size, struct agp_memory *mem) |
97 | 97 | { |
98 | 98 | mem->memory = NULL; |
99 | - mem->vmalloc_flag = 0; | |
99 | + mem->vmalloc_flag = false; | |
100 | 100 | |
101 | 101 | if (size <= 2*PAGE_SIZE) |
102 | 102 | mem->memory = kmalloc(size, GFP_KERNEL | __GFP_NORETRY); |
103 | 103 | if (mem->memory == NULL) { |
104 | 104 | mem->memory = vmalloc(size); |
105 | - mem->vmalloc_flag = 1; | |
105 | + mem->vmalloc_flag = true; | |
106 | 106 | } |
107 | 107 | } |
108 | 108 | EXPORT_SYMBOL(agp_alloc_page_array); |
drivers/char/agp/intel-agp.c
... | ... | @@ -325,7 +325,7 @@ |
325 | 325 | out: |
326 | 326 | ret = 0; |
327 | 327 | out_err: |
328 | - mem->is_flushed = 1; | |
328 | + mem->is_flushed = true; | |
329 | 329 | return ret; |
330 | 330 | } |
331 | 331 | |
... | ... | @@ -795,7 +795,7 @@ |
795 | 795 | out: |
796 | 796 | ret = 0; |
797 | 797 | out_err: |
798 | - mem->is_flushed = 1; | |
798 | + mem->is_flushed = true; | |
799 | 799 | return ret; |
800 | 800 | } |
801 | 801 | |
... | ... | @@ -1022,7 +1022,7 @@ |
1022 | 1022 | out: |
1023 | 1023 | ret = 0; |
1024 | 1024 | out_err: |
1025 | - mem->is_flushed = 1; | |
1025 | + mem->is_flushed = true; | |
1026 | 1026 | return ret; |
1027 | 1027 | } |
1028 | 1028 |
include/linux/agp_backend.h
include/linux/agpgart.h
... | ... | @@ -206,8 +206,8 @@ |
206 | 206 | struct agp_controller *current_controller; |
207 | 207 | struct agp_controller *controllers; |
208 | 208 | struct agp_file_private *file_priv_list; |
209 | - u8 used_by_controller; | |
210 | - u8 backend_acquired; | |
209 | + bool used_by_controller; | |
210 | + bool backend_acquired; | |
211 | 211 | }; |
212 | 212 | |
213 | 213 | #endif /* __KERNEL__ */ |