From: Henri Roosen Date: Fri, 2 Jun 2017 11:36:22 +0000 (+0200) Subject: rpmsg: virtio_rpmsg_bus: cleanup multiple assignment to ops X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fcd02384f40985279a8c1e1a3994c214fe99df30;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git rpmsg: virtio_rpmsg_bus: cleanup multiple assignment to ops Trivial cleanup: the .ops pointer is assigned twice. This patch removes the first assignment. Acked-by: Suman Anna Signed-off-by: Henri Roosen Signed-off-by: Bjorn Andersson --- diff --git a/drivers/rpmsg/virtio_rpmsg_bus.c b/drivers/rpmsg/virtio_rpmsg_bus.c index 76f8e6194109..eee2a9f77d37 100644 --- a/drivers/rpmsg/virtio_rpmsg_bus.c +++ b/drivers/rpmsg/virtio_rpmsg_bus.c @@ -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;