From 15aae23e9e5e98a93cf4d942080d17a6ef07d074 Mon Sep 17 00:00:00 2001 From: Shivani Bhardwaj Date: Fri, 16 Oct 2015 20:56:22 +0530 Subject: [PATCH] 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 --- drivers/staging/gdm724x/gdm_mux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5