Commit b2a31204 authored by Jingoo Han's avatar Jingoo Han Committed by John W. Linville

mwifiex: 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: default avatarJingoo Han <jg1.han@samsung.com>
Acked-by: default avatarBing Zhao <bzhao@marvell.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 5e88ba62
...@@ -93,7 +93,7 @@ static int mwifiex_pcie_suspend(struct device *dev) ...@@ -93,7 +93,7 @@ static int mwifiex_pcie_suspend(struct device *dev)
struct pci_dev *pdev = to_pci_dev(dev); struct pci_dev *pdev = to_pci_dev(dev);
if (pdev) { if (pdev) {
card = (struct pcie_service_card *) pci_get_drvdata(pdev); card = pci_get_drvdata(pdev);
if (!card || !card->adapter) { if (!card || !card->adapter) {
pr_err("Card or adapter structure is not valid\n"); pr_err("Card or adapter structure is not valid\n");
return 0; return 0;
...@@ -128,7 +128,7 @@ static int mwifiex_pcie_resume(struct device *dev) ...@@ -128,7 +128,7 @@ static int mwifiex_pcie_resume(struct device *dev)
struct pci_dev *pdev = to_pci_dev(dev); struct pci_dev *pdev = to_pci_dev(dev);
if (pdev) { if (pdev) {
card = (struct pcie_service_card *) pci_get_drvdata(pdev); card = pci_get_drvdata(pdev);
if (!card || !card->adapter) { if (!card || !card->adapter) {
pr_err("Card or adapter structure is not valid\n"); pr_err("Card or adapter structure is not valid\n");
return 0; return 0;
...@@ -2037,7 +2037,7 @@ static irqreturn_t mwifiex_pcie_interrupt(int irq, void *context) ...@@ -2037,7 +2037,7 @@ static irqreturn_t mwifiex_pcie_interrupt(int irq, void *context)
goto exit; goto exit;
} }
card = (struct pcie_service_card *) pci_get_drvdata(pdev); card = pci_get_drvdata(pdev);
if (!card || !card->adapter) { if (!card || !card->adapter) {
pr_debug("info: %s: card=%p adapter=%p\n", __func__, card, pr_debug("info: %s: card=%p adapter=%p\n", __func__, card,
card ? card->adapter : NULL); card ? card->adapter : NULL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment