Skip to contentSkip to conversation

Staging: gdx724x: gdm_mux: Remove explicit cast

PATCH New Shivani Bhardwaj 1 participant 1 message Oct 16, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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;

---
 drivers/staging/gdm724x/gdm_mux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/gdm724x/gdm_mux.c +1 -1
index 1cf24e4..a6bfd42 100644
@@ -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;
 
Signature · 1 line
2.1.0