Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228192
b: refs/heads/master
c: 8cab2fb
h: refs/heads/master
v: v3
  • Loading branch information
Sven Eckelmann authored and Greg Kroah-Hartman committed Nov 29, 2010
1 parent 6aacaa5 commit c4d94cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 003db3b2ad61c2964d624b0786cf8202e9a92c8e
refs/heads/master: 8cab2fbe6dacfdd3b122c450d2fffde6ac06a8b6
6 changes: 2 additions & 4 deletions trunk/drivers/staging/batman-adv/hard-interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@

#include <linux/if_arp.h>

#define MIN(x, y) ((x) < (y) ? (x) : (y))

/* protect update critical side of if_list - but not the content */
static DEFINE_SPINLOCK(if_list_lock);

Expand Down Expand Up @@ -220,8 +218,8 @@ int hardif_min_mtu(struct net_device *soft_iface)
if (batman_if->soft_iface != soft_iface)
continue;

min_mtu = MIN(batman_if->net_dev->mtu - BAT_HEADER_LEN,
min_mtu);
min_mtu = min_t(int, batman_if->net_dev->mtu - BAT_HEADER_LEN,
min_mtu);
}
rcu_read_unlock();
out:
Expand Down

0 comments on commit c4d94cd

Please sign in to comment.