From: Shivani Bhardwaj Date: Fri, 16 Oct 2015 15:26:22 +0000 (+0530) Subject: Staging: gdx724x: gdm_mux: Remove explicit cast X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=15aae23e9e5e98a93cf4d942080d17a6ef07d074;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Staging: gdx724x: gdm_mux: Remove explicit cast 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/gdm724x/gdm_mux.c b/drivers/staging/gdm724x/gdm_mux.c index 97b72a0b4ab7..07de99cf473e 100644 --- a/drivers/staging/gdm724x/gdm_mux.c +++ b/drivers/staging/gdm724x/gdm_mux.c @@ -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;