mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 00:53:34 +02:00
can: ems_pci: Remove unnecessary (void*) conversions
No need cast (void*) to (struct ems_pci_card *). Signed-off-by: Wu Yunchuan <yunchuan@nfschina.com> Acked-by: Marc Kleine-Budde <mkl@pengutronix.de> Link: https://lore.kernel.org/r/20230717031221.55073-1-yunchuan@nfschina.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
04115debed
commit
9235e3bcc6
|
|
@ -148,7 +148,7 @@ static void ems_pci_v1_write_reg(const struct sja1000_priv *priv,
|
|||
|
||||
static void ems_pci_v1_post_irq(const struct sja1000_priv *priv)
|
||||
{
|
||||
struct ems_pci_card *card = (struct ems_pci_card *)priv->priv;
|
||||
struct ems_pci_card *card = priv->priv;
|
||||
|
||||
/* reset int flag of pita */
|
||||
writel(PITA2_ICR_INT0_EN | PITA2_ICR_INT0,
|
||||
|
|
@ -168,7 +168,7 @@ static void ems_pci_v2_write_reg(const struct sja1000_priv *priv,
|
|||
|
||||
static void ems_pci_v2_post_irq(const struct sja1000_priv *priv)
|
||||
{
|
||||
struct ems_pci_card *card = (struct ems_pci_card *)priv->priv;
|
||||
struct ems_pci_card *card = priv->priv;
|
||||
|
||||
writel(PLX_ICSR_ENA_CLR, card->conf_addr + PLX_ICSR);
|
||||
}
|
||||
|
|
@ -186,7 +186,7 @@ static void ems_pci_v3_write_reg(const struct sja1000_priv *priv,
|
|||
|
||||
static void ems_pci_v3_post_irq(const struct sja1000_priv *priv)
|
||||
{
|
||||
struct ems_pci_card *card = (struct ems_pci_card *)priv->priv;
|
||||
struct ems_pci_card *card = priv->priv;
|
||||
|
||||
writel(ASIX_LINTSR_INT0AC, card->conf_addr + ASIX_LINTSR);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user