Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d622e84 authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman
Browse files

staging: unisys: visorchannel_create_guts(): Use visorchannel_read()



There is no benefit to calling visor_memregion_read() at this point.

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0abb60c1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -78,7 +78,7 @@ 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,
	err = visorchannel_read(channel, 0, &channel->chan_hdr,
				sizeof(struct channel_header));
	if (err)
		goto cleanup;