mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 14:56:54 -04:00
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>
This commit is contained in:
committed by
John W. Linville
parent
5e88ba6228
commit
b2a312046b
@@ -93,7 +93,7 @@ static int mwifiex_pcie_suspend(struct device *dev)
|
||||
struct pci_dev *pdev = to_pci_dev(dev);
|
||||
|
||||
if (pdev) {
|
||||
card = (struct pcie_service_card *) pci_get_drvdata(pdev);
|
||||
card = pci_get_drvdata(pdev);
|
||||
if (!card || !card->adapter) {
|
||||
pr_err("Card or adapter structure is not valid\n");
|
||||
return 0;
|
||||
@@ -128,7 +128,7 @@ static int mwifiex_pcie_resume(struct device *dev)
|
||||
struct pci_dev *pdev = to_pci_dev(dev);
|
||||
|
||||
if (pdev) {
|
||||
card = (struct pcie_service_card *) pci_get_drvdata(pdev);
|
||||
card = pci_get_drvdata(pdev);
|
||||
if (!card || !card->adapter) {
|
||||
pr_err("Card or adapter structure is not valid\n");
|
||||
return 0;
|
||||
@@ -2037,7 +2037,7 @@ static irqreturn_t mwifiex_pcie_interrupt(int irq, void *context)
|
||||
goto exit;
|
||||
}
|
||||
|
||||
card = (struct pcie_service_card *) pci_get_drvdata(pdev);
|
||||
card = pci_get_drvdata(pdev);
|
||||
if (!card || !card->adapter) {
|
||||
pr_debug("info: %s: card=%p adapter=%p\n", __func__, card,
|
||||
card ? card->adapter : NULL);
|
||||
|
||||
Reference in New Issue
Block a user