Staging: gdx724x: gdm_mux: Remove explicit cast
authorShivani Bhardwaj <shivanib134@gmail.com>
Fri, 16 Oct 2015 15:26:22 +0000 (20:56 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Oct 2015 06:06:38 +0000 (23:06 -0700)
Compiler can typecast variables implicitly so, explicit type cast is not
required and should be removed.
Semantic patch used:

@@
type T;
T e;
identifier x;
@@

* T x = (T)e;

Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gdm724x/gdm_mux.c

index 97b72a0b4ab71a026dd541c74b8315967b008307..07de99cf473ef968b912e39e06791ff12a9d5cda 100644 (file)
@@ -222,7 +222,7 @@ static void do_rx(struct work_struct *work)
        struct mux_dev *mux_dev =
                container_of(work, struct mux_dev, work_rx.work);
        struct mux_rx *r;
-       struct rx_cxt *rx = (struct rx_cxt *)&mux_dev->rx;
+       struct rx_cxt *rx = &mux_dev->rx;
        unsigned long flags;
        int ret = 0;