From: Joe Perches Date: Mon, 10 Jan 2011 21:11:22 +0000 (+0100) Subject: i2c-nforce2: Remove unnecessary cast of pci_get_drvdata X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b18a5c80eb2e7e9c72d23f1960b09d78ddf7e5b0;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git i2c-nforce2: Remove unnecessary cast of pci_get_drvdata Signed-off-by: Joe Perches Signed-off-by: Jean Delvare --- diff --git a/drivers/i2c/busses/i2c-nforce2.c b/drivers/i2c/busses/i2c-nforce2.c index a605a5029cfe..ff1e127dfea8 100644 --- a/drivers/i2c/busses/i2c-nforce2.c +++ b/drivers/i2c/busses/i2c-nforce2.c @@ -432,7 +432,7 @@ static int __devinit nforce2_probe(struct pci_dev *dev, const struct pci_device_ static void __devexit nforce2_remove(struct pci_dev *dev) { - struct nforce2_smbus *smbuses = (void*) pci_get_drvdata(dev); + struct nforce2_smbus *smbuses = pci_get_drvdata(dev); nforce2_set_reference(NULL); if (smbuses[0].base) {