mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 06:18:45 -04:00
staging: unisys: visorchannel_create_guts(): Use visorchannel_read()
There is no benefit to calling visor_memregion_read() at this point. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0abb60c1c5
commit
0d622e84f8
@@ -78,8 +78,8 @@ visorchannel_create_guts(HOSTADDRESS physaddr, ulong channel_bytes,
|
||||
channel->memregion.physaddr = physaddr;
|
||||
channel->memregion.nbytes = size;
|
||||
|
||||
err = visor_memregion_read(&channel->memregion, 0, &channel->chan_hdr,
|
||||
sizeof(struct channel_header));
|
||||
err = visorchannel_read(channel, 0, &channel->chan_hdr,
|
||||
sizeof(struct channel_header));
|
||||
if (err)
|
||||
goto cleanup;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user