mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 10:25:26 +07:00
staging: rts5208: Remove useless cast on void pointer
void pointers do not need to be cast to other pointer types. The semantic patch used to find this: @r@ expression x; void* e; type T; identifier f; @@ ( *((T *)e) | ((T *)x)[...] | ((T *)x)->f | - (T *) e ) Build tested it. Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ad6128a3a1
commit
aa54b60d63
@ -418,7 +418,7 @@ static void rtsx_shutdown(struct pci_dev *pci)
|
||||
|
||||
static int rtsx_control_thread(void *__dev)
|
||||
{
|
||||
struct rtsx_dev *dev = (struct rtsx_dev *)__dev;
|
||||
struct rtsx_dev *dev = __dev;
|
||||
struct rtsx_chip *chip = dev->chip;
|
||||
struct Scsi_Host *host = rtsx_to_host(dev);
|
||||
|
||||
@ -527,7 +527,7 @@ static int rtsx_control_thread(void *__dev)
|
||||
|
||||
static int rtsx_polling_thread(void *__dev)
|
||||
{
|
||||
struct rtsx_dev *dev = (struct rtsx_dev *)__dev;
|
||||
struct rtsx_dev *dev = __dev;
|
||||
struct rtsx_chip *chip = dev->chip;
|
||||
struct sd_info *sd_card = &(chip->sd_card);
|
||||
struct xd_info *xd_card = &(chip->xd_card);
|
||||
|
Loading…
Reference in New Issue
Block a user