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

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
...@@ -293,14 +293,14 @@ visorchannel_clear(struct visorchannel *channel, ulong offset, u8 ch, ...@@ -293,14 +293,14 @@ visorchannel_clear(struct visorchannel *channel, ulong offset, u8 ch,
err = visorchannel_write(channel, offset + written, err = visorchannel_write(channel, offset + written,
buf, thisbytes); buf, thisbytes);
if (err) if (err)
goto cleanup; goto out_free_page;
written += thisbytes; written += thisbytes;
nbytes -= thisbytes; nbytes -= thisbytes;
} }
err = 0; err = 0;
cleanup: out_free_page:
free_page((unsigned long)buf); free_page((unsigned long)buf);
return err; return err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment