fix compiler warnings
[openwrt/svn-archive/openwrt.git] / target / linux / adm5120-2.6 / files / drivers / mtd / maps / adm5120_mtd.c
index 38a4593cee7277cc09126ffa9bee095771048aa5..6251fa47f253938297ecca24c4d1dd16c2af8e62 100644 (file)
@@ -272,7 +272,6 @@ find_root(struct mtd_info *mtd, size_t size, struct mtd_partition *part)
        int off, blocksize;
        u32 i, crc = ~0;
        size_t len;
-       struct squashfs_super_block *sb = (struct squashfs_super_block *) buf;
 
        blocksize = mtd->erasesize;
        if (blocksize < 0x10000)
@@ -450,8 +449,8 @@ int __init init_adm5120_map(void)
 #ifdef CONFIG_MTD_MYLOADER_PARTS
        if (adm5120_boot_loader == BOOT_LOADER_MYLOADER)
        {
-               printk(KERN_NOTICE "adm5120 : using MyLoader flash mapping\n");
                char *part_type;
+               printk(KERN_NOTICE "adm5120 : using MyLoader flash mapping\n");
 
                if (parsed_nr_parts == 0) {
                        ret = parse_myloader_partitions(adm5120_mtd, &parts, 0);