]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
staging: ks7010: remove void * cast
authorTobin C. Harding <me@tobin.cc>
Mon, 10 Apr 2017 03:15:39 +0000 (13:15 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Apr 2017 14:03:36 +0000 (16:03 +0200)
commit5141e9c6346892d9705558ccf27489806c2bdddf
tree269821b3bf882b0338486071c721fecc0530f008
parented246b9ecc9212aa899721af74d97bbbcdc84add
staging: ks7010: remove void * cast

Functions accept a parameter of type 'void *', this is then cast to a
struct ks_wlan_private pointer. All call sites have a struct
ks_wlan_private pointer and cast it to 'void *'. We can remove the
unnecessary casting by changing the parameter type to match the
usage. Functions changed all have internal linkage.

Replace parameter of type 'void *' with 'struct ks_wlan_private
*'. Remove unnecessary casting to and from 'void *'.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks7010_sdio.c