mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-20 18:54:09 +08: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:
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user