From 35d49555eaa2df1135dbb5876acf462c5b657174 Mon Sep 17 00:00:00 2001 From: Jingoo Han Date: Fri, 29 Aug 2014 12:51:24 +0900 Subject: [PATCH] staging: rts5208: Remove casting the return value which is a void pointer Casting the return value which is a void pointer is redundant. The conversion from void pointer to any other pointer type is guaranteed by the C programming language. Signed-off-by: Jingoo Han Signed-off-by: Greg Kroah-Hartman --- drivers/staging/rts5208/rtsx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rts5208/rtsx.c b/drivers/staging/rts5208/rtsx.c index e7a6ba2002ae..a2ea13a475fd 100644 --- a/drivers/staging/rts5208/rtsx.c +++ b/drivers/staging/rts5208/rtsx.c @@ -313,7 +313,7 @@ int rtsx_read_pci_cfg_byte(u8 bus, u8 dev, u8 func, u8 offset, u8 *val) */ static int rtsx_suspend(struct pci_dev *pci, pm_message_t state) { - struct rtsx_dev *dev = (struct rtsx_dev *)pci_get_drvdata(pci); + struct rtsx_dev *dev = pci_get_drvdata(pci); struct rtsx_chip *chip; if (!dev) @@ -348,7 +348,7 @@ static int rtsx_suspend(struct pci_dev *pci, pm_message_t state) static int rtsx_resume(struct pci_dev *pci) { - struct rtsx_dev *dev = (struct rtsx_dev *)pci_get_drvdata(pci); + struct rtsx_dev *dev = pci_get_drvdata(pci); struct rtsx_chip *chip; if (!dev) @@ -394,7 +394,7 @@ static int rtsx_resume(struct pci_dev *pci) static void rtsx_shutdown(struct pci_dev *pci) { - struct rtsx_dev *dev = (struct rtsx_dev *)pci_get_drvdata(pci); + struct rtsx_dev *dev = pci_get_drvdata(pci); struct rtsx_chip *chip; if (!dev) @@ -1017,7 +1017,7 @@ errout: static void rtsx_remove(struct pci_dev *pci) { - struct rtsx_dev *dev = (struct rtsx_dev *)pci_get_drvdata(pci); + struct rtsx_dev *dev = pci_get_drvdata(pci); dev_info(&pci->dev, "rtsx_remove() called\n"); -- 2.20.1