lkml.org 
[lkml]   [2023]   [Jul]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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

\
 
 \ /
  Last update: 2023-07-10 09:32    [W:0.035 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site