mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net-next v2 09/10] can: ems_pci: Remove unnecessary (void*) conversions
@ 2023-07-10  6:41 Su Hui
  2023-07-10  6:49 ` Marc Kleine-Budde
  0 siblings, 1 reply; 4+ messages in thread
From: Su Hui @ 2023-07-10  6:41 UTC (permalink / raw)
  To: wg, mkl, davem, edumazet, kuba, pabeni
  Cc: uttenthaler, yunchuan, linux-can, netdev, linux-kernel, kernel-janitors

From: wuych <yunchuan@nfschina.com>

Pointer variables of void * type do not require type cast.

Signed-off-by: wuych <yunchuan@nfschina.com>
---
 drivers/net/can/sja1000/ems_pci.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/net/can/sja1000/ems_pci.c b/drivers/net/can/sja1000/ems_pci.c
index c56e27223e5f..ac86640998a8 100644
--- a/drivers/net/can/sja1000/ems_pci.c
+++ b/drivers/net/can/sja1000/ems_pci.c
@@ -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);
 }
-- 
2.30.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH net-next v2 09/10] can: ems_pci: Remove unnecessary (void*) conversions
  2023-07-10  6:41 [PATCH net-next v2 09/10] can: ems_pci: Remove unnecessary (void*) conversions Su Hui
@ 2023-07-10  6:49 ` Marc Kleine-Budde
  2023-07-10  6:53   ` yunchuan
  0 siblings, 1 reply; 4+ messages in thread
From: Marc Kleine-Budde @ 2023-07-10  6:49 UTC (permalink / raw)
  To: Su Hui
  Cc: wg, davem, edumazet, kuba, pabeni, uttenthaler, yunchuan,
	linux-can, netdev, linux-kernel, kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 655 bytes --]

On 10.07.2023 14:41:38, Su Hui wrote:
> From: wuych <yunchuan@nfschina.com>
> 
> Pointer variables of void * type do not require type cast.

I like the idea. Please add my Acked-by: Marc Kleine-Budde
<mkl@pengutronix.de>, after you've fixed the issue:

> Signed-off-by: wuych <yunchuan@nfschina.com>

This patch is not Signed-off-by the contributing person.

regards,
Marc

-- 
Pengutronix e.K.                 | Marc Kleine-Budde          |
Embedded Linux                   | https://www.pengutronix.de |
Vertretung Nürnberg              | Phone: +49-5121-206917-129 |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-9   |

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH net-next v2 09/10] can: ems_pci: Remove unnecessary (void*) conversions
  2023-07-10  6:49 ` Marc Kleine-Budde
@ 2023-07-10  6:53   ` yunchuan
  2023-07-10  7:03     ` yunchuan
  0 siblings, 1 reply; 4+ messages in thread
From: yunchuan @ 2023-07-10  6:53 UTC (permalink / raw)
  To: Marc Kleine-Budde, Su Hui
  Cc: wg, davem, edumazet, kuba, pabeni, uttenthaler, linux-can,
	netdev, linux-kernel, kernel-janitors

On 2023/7/10 14:49, Marc Kleine-Budde wrote:
> On 10.07.2023 14:41:38, Su Hui wrote:
>> From: wuych <yunchuan@nfschina.com>
>>
>> Pointer variables of void * type do not require type cast.
> I like the idea. Please add my Acked-by: Marc Kleine-Budde
> <mkl@pengutronix.de>, after you've fixed the issue:
that's great, I will do this.
thanks:)!

wuych

>> Signed-off-by: wuych <yunchuan@nfschina.com>
> This patch is not Signed-off-by the contributing person.
>
> regards,
> Marc
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH net-next v2 09/10] can: ems_pci: Remove unnecessary (void*) conversions
  2023-07-10  6:53   ` yunchuan
@ 2023-07-10  7:03     ` yunchuan
  0 siblings, 0 replies; 4+ messages in thread
From: yunchuan @ 2023-07-10  7:03 UTC (permalink / raw)
  To: Marc Kleine-Budde
  Cc: wg, davem, edumazet, kuba, pabeni, uttenthaler, linux-can,
	netdev, linux-kernel, kernel-janitors

On 2023/7/10 14:53, yunchuan wrote:
> On 2023/7/10 14:49, Marc Kleine-Budde wrote:
>> On 10.07.2023 14:41:38, Su Hui wrote:
>>> From: wuych <yunchuan@nfschina.com>
>>>
>>> Pointer variables of void * type do not require type cast.
>> I like the idea. Please add my Acked-by: Marc Kleine-Budde
>> <mkl@pengutronix.de>, after you've fixed the issue:
> that's great, I will do this.
> thanks:)!
>
> wuych
>
>>> Signed-off-by: wuych <yunchuan@nfschina.com>
>> This patch is not Signed-off-by the contributing person.
>>

Oh, sorry for this, I just mixed the email because of some careless reasons.
The send email <suhui@nfschina.com> is my co-worker.
But the contributing person is me, sorry again!

wuych


>> regards,
>> Marc
>>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-07-10  7:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-10  6:41 [PATCH net-next v2 09/10] can: ems_pci: Remove unnecessary (void*) conversions Su Hui
2023-07-10  6:49 ` Marc Kleine-Budde
2023-07-10  6:53   ` yunchuan
2023-07-10  7:03     ` yunchuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®