rpmsg: virtio_rpmsg_bus: cleanup multiple assignment to ops
authorHenri Roosen <henri.roosen@ginzinger.com>
Fri, 2 Jun 2017 11:36:22 +0000 (13:36 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Sun, 25 Jun 2017 21:43:31 +0000 (14:43 -0700)
Trivial cleanup: the .ops pointer is assigned twice. This patch removes the
first assignment.

Acked-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Henri Roosen <henri.roosen@ginzinger.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/rpmsg/virtio_rpmsg_bus.c

index 76f8e619410976d086db37d0d06e14b948a28d5f..eee2a9f77d37dcdf892cc3db6735cdcdb7cfc4d2 100644 (file)
@@ -398,9 +398,6 @@ static struct rpmsg_device *rpmsg_create_channel(struct virtproc_info *vrp,
        /* Link the channel to our vrp */
        vch->vrp = vrp;
 
-       /* Assign callbacks for rpmsg_channel */
-       vch->rpdev.ops = &virtio_rpmsg_ops;
-
        /* Assign public information to the rpmsg_device */
        rpdev = &vch->rpdev;
        rpdev->src = chinfo->src;