mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 01:34:14 +08:00
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:
parent
5bf49a6c74
commit
d342c06043
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user