Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b067c50a authored by Paul Mundt's avatar Paul Mundt
Browse files

sh: Silence sq compile warning on sh4 nommu.



Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 3c6b6c7f
Loading
Loading
Loading
Loading
+12 −6
Original line number Diff line number Diff line
@@ -208,7 +208,6 @@ EXPORT_SYMBOL(sq_remap);
void sq_unmap(unsigned long vaddr)
{
	struct sq_mapping **p, *map;
	struct vm_struct *vma;
	int page;

	for (p = &sq_mapping_list; (map = *p); p = &map->next)
@@ -225,12 +224,19 @@ void sq_unmap(unsigned long vaddr)
	bitmap_release_region(sq_bitmap, page, get_order(map->size));

#ifdef CONFIG_MMU
	{
		/*
		 * Tear down the VMA in the MMU case.
		 */
		struct vm_struct *vma;

		vma = remove_vm_area((void *)(map->sq_addr & PAGE_MASK));
		if (!vma) {
			printk(KERN_ERR "%s: bad address 0x%08lx\n",
			       __FUNCTION__, map->sq_addr);
			return;
		}
	}
#endif

	sq_mapping_list_del(map);