Skip to contentSkip to conversation

Staging: rtl8712: rtl871x_io: Remove explicit cast

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: rtl8712: rtl871x_io: Remove explicit cast

Explicit typecasting is not required and should be removed. Semantic patch used:
@@
type T;
T e;
identifier x;
@@

* T x = (T)e;

---
 drivers/staging/rtl8712/rtl871x_io.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8712/rtl871x_io.c +1 -1
index e4e5b13c..fbbc635 100644
@@ -150,7 +150,7 @@ alloc_io_queue_fail:
 
 void r8712_free_io_queue(struct _adapter *adapter)
 {
-	struct io_queue *pio_queue = (struct io_queue *)(adapter->pio_queue);
+	struct io_queue *pio_queue = adapter->pio_queue;
 
 	if (pio_queue) {
 		kfree(pio_queue->pallocated_free_ioreqs_buf);
Signature · 1 line
2.1.0