|
@@ -552,7 +552,7 @@ static void batadv_send_outstanding_bcast_packet(struct work_struct *work)
|
|
|
struct net_device *soft_iface;
|
|
|
struct batadv_priv *bat_priv;
|
|
|
|
|
|
- delayed_work = container_of(work, struct delayed_work, work);
|
|
|
+ delayed_work = to_delayed_work(work);
|
|
|
forw_packet = container_of(delayed_work, struct batadv_forw_packet,
|
|
|
delayed_work);
|
|
|
soft_iface = forw_packet->if_incoming->soft_iface;
|
|
@@ -604,7 +604,7 @@ void batadv_send_outstanding_bat_ogm_packet(struct work_struct *work)
|
|
|
struct batadv_forw_packet *forw_packet;
|
|
|
struct batadv_priv *bat_priv;
|
|
|
|
|
|
- delayed_work = container_of(work, struct delayed_work, work);
|
|
|
+ delayed_work = to_delayed_work(work);
|
|
|
forw_packet = container_of(delayed_work, struct batadv_forw_packet,
|
|
|
delayed_work);
|
|
|
bat_priv = netdev_priv(forw_packet->if_incoming->soft_iface);
|