Code cleanup: remove unused #include, variables and code,

This commit is contained in:
Kees van Reeuwijk
2010-04-15 18:49:36 +00:00
parent cfb108afc7
commit b412fb7ad5
21 changed files with 24 additions and 52 deletions

View File

@@ -47,7 +47,7 @@ endpoint_t *e_granter; /* new granter (magic grants) */
static cp_grant_t g;
static int proc_nr;
static const struct proc *granter_proc;
int r, depth = 0;
int depth = 0;
do {
/* Get granter process slot (if valid), and check range of
@@ -86,9 +86,9 @@ endpoint_t *e_granter; /* new granter (magic grants) */
* (presumably) set an invalid grant table entry by returning
* EPERM, just like with an invalid grant id.
*/
if((r=data_copy(granter,
if(data_copy(granter,
priv(granter_proc)->s_grant_table + sizeof(g)*grant,
KERNEL, (vir_bytes) &g, sizeof(g))) != OK) {
KERNEL, (vir_bytes) &g, sizeof(g)) != OK) {
printf(
"verify_grant: grant verify: data_copy failed\n");
return EPERM;