staging: unisys: visorchannel_create_guts(): Use visorchannel_read()
authorJes Sorensen <Jes.Sorensen@redhat.com>
Tue, 5 May 2015 22:36:57 +0000 (18:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 May 2015 13:27:29 +0000 (15:27 +0200)
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>
drivers/staging/unisys/visorbus/visorchannel.c

index da7bd9c362f7965cf806bdfdf842e5df7ae8b420..6d7ea8bf435d07dead922d807bfa59a39cb71662 100644 (file)
@@ -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;