diff options
Diffstat (limited to 'net/tipc/eth_media.c')
-rw-r--r-- | net/tipc/eth_media.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/tipc/eth_media.c b/net/tipc/eth_media.c index 1f8d83b9c8b4..7a252785f727 100644 --- a/net/tipc/eth_media.c +++ b/net/tipc/eth_media.c | |||
@@ -169,7 +169,7 @@ static int enable_bearer(struct tipc_bearer *tb_ptr) | |||
169 | 169 | ||
170 | static void disable_bearer(struct tipc_bearer *tb_ptr) | 170 | static void disable_bearer(struct tipc_bearer *tb_ptr) |
171 | { | 171 | { |
172 | ((struct eth_bearer *)tb_ptr->usr_handle)->bearer = 0; | 172 | ((struct eth_bearer *)tb_ptr->usr_handle)->bearer = NULL; |
173 | } | 173 | } |
174 | 174 | ||
175 | /** | 175 | /** |
@@ -285,7 +285,7 @@ void tipc_eth_media_stop(void) | |||
285 | for (i = 0; i < MAX_ETH_BEARERS ; i++) { | 285 | for (i = 0; i < MAX_ETH_BEARERS ; i++) { |
286 | if (eth_bearers[i].bearer) { | 286 | if (eth_bearers[i].bearer) { |
287 | eth_bearers[i].bearer->blocked = 1; | 287 | eth_bearers[i].bearer->blocked = 1; |
288 | eth_bearers[i].bearer = 0; | 288 | eth_bearers[i].bearer = NULL; |
289 | } | 289 | } |
290 | if (eth_bearers[i].dev) { | 290 | if (eth_bearers[i].dev) { |
291 | dev_remove_pack(ð_bearers[i].tipc_packet_type); | 291 | dev_remove_pack(ð_bearers[i].tipc_packet_type); |