]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
Staging: rtl8712: rtl871x_io: Remove explicit cast
authorShivani Bhardwaj <shivanib134@gmail.com>
Wed, 14 Oct 2015 13:44:59 +0000 (19:14 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Oct 2015 05:12:30 +0000 (22:12 -0700)
Explicit typecasting 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/rtl8712/rtl871x_io.c

index e4e5b13cb9279d4ad3e62adf8e8a3ea74a6185a9..fbbc63570eabc397223009cca5e64a2aa63c7643 100644 (file)
@@ -150,7 +150,7 @@ uint r8712_alloc_io_queue(struct _adapter *adapter)
 
 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);