From: Shivani Bhardwaj Date: Wed, 14 Oct 2015 13:44:59 +0000 (+0530) Subject: Staging: rtl8712: rtl871x_io: Remove explicit cast X-Git-Tag: v4.4-rc1~125^2~607 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0b2ea2c7adf0abb528d277889f74243b537b1705;p=thirdparty%2Fkernel%2Flinux.git 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; Signed-off-by: Shivani Bhardwaj Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8712/rtl871x_io.c b/drivers/staging/rtl8712/rtl871x_io.c index e4e5b13cb9279..fbbc63570eabc 100644 --- a/drivers/staging/rtl8712/rtl871x_io.c +++ b/drivers/staging/rtl8712/rtl871x_io.c @@ -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);