diff mbox

[05/14] target-cris: Remove unnecessary ifdef from mmu.c

Message ID 1455031511-23684-6-git-send-email-peter.maydell@linaro.org
State Accepted
Commit 70e6b879d7d7c0aa1740e4d574c82b499a8b1343
Headers show

Commit Message

Peter Maydell Feb. 9, 2016, 3:25 p.m. UTC
mmu.c is only built for CONFIG_SOFTMMU targets, so there is
no need to redundantly surround the whole file contents with
an #ifndef CONFIG_USER_ONLY. The ifdef also confuses the
Coccinelle tool.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>

---
 target-cris/mmu.c | 3 ---
 1 file changed, 3 deletions(-)

-- 
1.9.1
diff mbox

Patch

diff --git a/target-cris/mmu.c b/target-cris/mmu.c
index 1c95a41..4a9c595 100644
--- a/target-cris/mmu.c
+++ b/target-cris/mmu.c
@@ -18,8 +18,6 @@ 
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef CONFIG_USER_ONLY
-
 #include "cpu.h"
 #include "mmu.h"
 
@@ -360,4 +358,3 @@  int cris_mmu_translate(struct cris_mmu_result *res,
 	env->pregs[PR_SRS] = old_srs;
 	return miss;
 }
-#endif