Commit d342c060 authored by David Kershner's avatar David Kershner Committed by Greg Kroah-Hartman
Browse files

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: default avatarDavid Kershner <david.kershner@unisys.com>
Signed-off-by: default avatarTimothy Sell <timothy.sell@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5bf49a6c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
}