diff --git a/target/linux/adm5120/files/arch/mips/adm5120/prom/routerboot.c b/target/linux/adm5120/files/arch/mips/adm5120/prom/routerboot.c
index 0effe24d0e2e725b52432ca91d67e11800b58bd9..ddf429f766b5aabc7e4f81e578fb710e6b3f07b5 100644
--- a/target/linux/adm5120/files/arch/mips/adm5120/prom/routerboot.c
+++ b/target/linux/adm5120/files/arch/mips/adm5120/prom/routerboot.c
@@ -42,8 +42,6 @@ static int rb_found;
 static int __init routerboot_load_hs(u8 *buf, u16 buflen)
 {
 	u16 id, len;
-	u8 *mac;
-	int i, j;
 
 	memset(&rb_hs, 0, sizeof(rb_hs));