Messages in this thread | | | Date | Mon, 10 Jul 2023 10:31:47 +0300 | From | Dan Carpenter <> | Subject | Re: [PATCH net-next v2 02/10] net: atlantic: Remove unnecessary (void*) conversions |
| |
On Mon, Jul 10, 2023 at 02:39:52PM +0800, Su Hui wrote: > static void hw_atl2_hw_init_new_rx_filters(struct aq_hw_s *self) > { > - struct hw_atl2_priv *priv = (struct hw_atl2_priv *)self->priv; > u8 *prio_tc_map = self->aq_nic_cfg->prio_tc_map; > + struct hw_atl2_priv *priv = self->priv; > u16 action; > u8 index; > int i;
In this case moving the variable is fine because it's related to removing the cast. But in the other case it was moving other decalarations so it wasn't related.
regards, dan carpenter
| |