[PATCH] Staging: rtl8192e: Timer setup using macro rather assignment

Julia Lawall julia.lawall at lip6.fr
Mon May 18 17:49:30 UTC 2015


>  void _setup_timer(struct timer_list *ptimer, void *fun, unsigned long data)
>  {
> -	ptimer->function = fun;
> -	ptimer->data = data;
>  	init_timer(ptimer);
> +	setup_timer(ptimer, fun, data);
>  }

setup_timer also subsumes init_timer.  Check the definition.  Probably you 
can delete this function completely.

julia


More information about the devel mailing list