Merge tag 'batadv-next-for-davem-20171006' of git://git.open-mesh.org/linux-merge
Simon Wunderlich says: ==================== This cleanup patchset includes the following patches: - bump version strings, by Simon Wunderlich - Cleanup patches to make checkpatch happy, by Sven Eckelmann (3 patches) ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -69,8 +69,8 @@ int batadv_skb_head_push(struct sk_buff *skb, unsigned int len)
|
||||
int result;
|
||||
|
||||
/* TODO: We must check if we can release all references to non-payload
|
||||
* data using __skb_header_release in our skbs to allow skb_cow_header to
|
||||
* work optimally. This means that those skbs are not allowed to read
|
||||
* data using __skb_header_release in our skbs to allow skb_cow_header
|
||||
* to work optimally. This means that those skbs are not allowed to read
|
||||
* or write any data which is before the current position of skb->data
|
||||
* after that call and thus allow other skbs with the same data buffer
|
||||
* to write freely in that area.
|
||||
@@ -160,7 +160,7 @@ static int batadv_interface_set_mac_addr(struct net_device *dev, void *p)
|
||||
static int batadv_interface_change_mtu(struct net_device *dev, int new_mtu)
|
||||
{
|
||||
/* check ranges */
|
||||
if ((new_mtu < 68) || (new_mtu > batadv_hardif_min_mtu(dev)))
|
||||
if (new_mtu < 68 || new_mtu > batadv_hardif_min_mtu(dev))
|
||||
return -EINVAL;
|
||||
|
||||
dev->mtu = new_mtu;
|
||||
|
||||
Reference in New Issue
Block a user