staging: unisys: visorbus: clean up visorchannel_clear

Goto label was ambiguous change to out_free_page to signify that
we will always go through the path even on success.

Signed-off-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Timothy Sell <timothy.sell@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
David Kershner 2016-03-08 21:28:28 -05:00 committed by Greg Kroah-Hartman
parent 5bf49a6c74
commit d342c06043

View File

@ -293,14 +293,14 @@ visorchannel_clear(struct visorchannel *channel, ulong offset, u8 ch,
err = visorchannel_write(channel, offset + written,
buf, thisbytes);
if (err)
goto cleanup;
goto out_free_page;
written += thisbytes;
nbytes -= thisbytes;
}
err = 0;
cleanup:
out_free_page:
free_page((unsigned long)buf);
return err;
}