ia64/xen-unstable
changeset 5562:53cd28bdd477
bitkeeper revision 1.1743 (42baabd1aq7F8kKY4ptBZ39ebtEqOw)
null_set_binary_policy() should return ACM_OK instead of -1. This
patch also makes few cleanups.
Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
null_set_binary_policy() should return ACM_OK instead of -1. This
patch also makes few cleanups.
Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
author | kaf24@firebug.cl.cam.ac.uk |
---|---|
date | Thu Jun 23 12:32:17 2005 +0000 (2005-06-23) |
parents | 5a134cea8f10 |
children | d23f547a023e |
files | xen/acm/acm_null_hooks.c |
line diff
1.1 --- a/xen/acm/acm_null_hooks.c Thu Jun 23 10:15:55 2005 +0000 1.2 +++ b/xen/acm/acm_null_hooks.c Thu Jun 23 12:32:17 2005 +0000 1.3 @@ -19,28 +19,23 @@ null_init_domain_ssid(void **chwall_ssid 1.4 return ACM_OK; 1.5 } 1.6 1.7 - 1.8 static void 1.9 null_free_domain_ssid(void *chwall_ssid) 1.10 { 1.11 return; 1.12 } 1.13 1.14 - 1.15 static int 1.16 null_dump_binary_policy(u8 *buf, u16 buf_size) 1.17 { 1.18 return 0; 1.19 } 1.20 1.21 - 1.22 - 1.23 static int 1.24 null_set_binary_policy(u8 *buf, u16 buf_size) 1.25 { 1.26 - return -1; 1.27 + return ACM_OK; 1.28 } 1.29 - 1.30 1.31 static int 1.32 null_dump_stats(u8 *buf, u16 buf_size) 1.33 @@ -49,7 +44,6 @@ null_dump_stats(u8 *buf, u16 buf_size) 1.34 return 0; 1.35 } 1.36 1.37 - 1.38 /* now define the hook structure similarly to LSM */ 1.39 struct acm_operations acm_null_ops = { 1.40 .init_domain_ssid = null_init_domain_ssid, 1.41 @@ -72,5 +66,4 @@ struct acm_operations acm_null_ops = { 1.42 .fail_grant_map_ref = NULL, 1.43 .pre_grant_setup = NULL, 1.44 .fail_grant_setup = NULL 1.45 - 1.46 };