aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/pcie.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-09-09 01:26:51 -0400
committerJohn W. Linville <linville@tuxdriver.com>2013-09-26 15:13:36 -0400
commitb2a312046b6066cbf3bfb9154c7390eb0154fe03 (patch)
treeaa9d011e311fdc441ec2fb50ff3f4c0986ab137e /drivers/net/wireless/mwifiex/pcie.c
parent5e88ba6228e66741811992a6c1d7cf37195ed4be (diff)
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: Jingoo Han <jg1.han@samsung.com> Acked-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/pcie.c')
-rw-r--r--drivers/net/wireless/mwifiex/pcie.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/mwifiex/pcie.c b/drivers/net/wireless/mwifiex/pcie.c
index 52da8ee7599a..33fa9432b241 100644
--- a/drivers/net/wireless/mwifiex/pcie.c
+++ b/drivers/net/wireless/mwifiex/pcie.c
@@ -93,7 +93,7 @@ static int mwifiex_pcie_suspend(struct device *dev)
93 struct pci_dev *pdev = to_pci_dev(dev); 93 struct pci_dev *pdev = to_pci_dev(dev);
94 94
95 if (pdev) { 95 if (pdev) {
96 card = (struct pcie_service_card *) pci_get_drvdata(pdev); 96 card = pci_get_drvdata(pdev);
97 if (!card || !card->adapter) { 97 if (!card || !card->adapter) {
98 pr_err("Card or adapter structure is not valid\n"); 98 pr_err("Card or adapter structure is not valid\n");
99 return 0; 99 return 0;
@@ -128,7 +128,7 @@ static int mwifiex_pcie_resume(struct device *dev)
128 struct pci_dev *pdev = to_pci_dev(dev); 128 struct pci_dev *pdev = to_pci_dev(dev);
129 129
130 if (pdev) { 130 if (pdev) {
131 card = (struct pcie_service_card *) pci_get_drvdata(pdev); 131 card = pci_get_drvdata(pdev);
132 if (!card || !card->adapter) { 132 if (!card || !card->adapter) {
133 pr_err("Card or adapter structure is not valid\n"); 133 pr_err("Card or adapter structure is not valid\n");
134 return 0; 134 return 0;
@@ -2037,7 +2037,7 @@ static irqreturn_t mwifiex_pcie_interrupt(int irq, void *context)
2037 goto exit; 2037 goto exit;
2038 } 2038 }
2039 2039
2040 card = (struct pcie_service_card *) pci_get_drvdata(pdev); 2040 card = pci_get_drvdata(pdev);
2041 if (!card || !card->adapter) { 2041 if (!card || !card->adapter) {
2042 pr_debug("info: %s: card=%p adapter=%p\n", __func__, card, 2042 pr_debug("info: %s: card=%p adapter=%p\n", __func__, card,
2043 card ? card->adapter : NULL); 2043 card ? card->adapter : NULL);