Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - trivial fixes

This commit is contained in:
Freddie Chopin
2011-06-03 22:10:03 +02:00
committed by Øyvind Harboe
parent ae02a0e517
commit f6315d5e5b
22 changed files with 16 additions and 87 deletions

View File

@@ -536,7 +536,6 @@ int arm926ejs_arch_state(struct target *target)
};
struct arm926ejs_common *arm926ejs = target_to_arm926(target);
struct arm *armv4_5;
if (arm926ejs->common_magic != ARM926EJS_COMMON_MAGIC)
{
@@ -544,8 +543,6 @@ int arm926ejs_arch_state(struct target *target)
return ERROR_TARGET_INVALID;
}
armv4_5 = &arm926ejs->arm7_9_common.armv4_5_common;
arm_arch_state(target);
LOG_USER("MMU: %s, D-Cache: %s, I-Cache: %s",
state[arm926ejs->armv4_5_mmu.mmu_enabled],