swim: Release memory region after incorrect return/goto

The code uses

	return foo;
	goto err_type;

when instead the form should have been

	ret = foo;
	goto err_type;

Here this causes a useful release_mem_region to be skipped.

Signed-off-by: Joe Perches <joe@perches.com>
Reviewed-by: Laurent Vivier <Laurent@Vivier.EU>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
This commit is contained in:
Joe Perches 2013-06-04 11:34:35 -07:00 committed by Geert Uytterhoeven
parent 378f7ca6aa
commit 957d6bf665
1 changed files with 1 additions and 1 deletions

View File

@ -893,7 +893,7 @@ static int swim_probe(struct platform_device *dev)
swim_base = ioremap(res->start, resource_size(res)); swim_base = ioremap(res->start, resource_size(res));
if (!swim_base) { if (!swim_base) {
return -ENOMEM; ret = -ENOMEM;
goto out_release_io; goto out_release_io;
} }