Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a02cec21 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

net: return operator cleanup



Change "return (EXPR);" to "return EXPR;"

return is not a function, parentheses are not required.

Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6a08d194
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -449,7 +449,7 @@ void vcc_insert_socket(struct sock *sk);


static inline int atm_guess_pdu2truesize(int size)
static inline int atm_guess_pdu2truesize(int size)
{
{
	return (SKB_DATA_ALIGN(size) + sizeof(struct skb_shared_info));
	return SKB_DATA_ALIGN(size) + sizeof(struct skb_shared_info);
}
}




+2 −2
Original line number Original line Diff line number Diff line
@@ -71,7 +71,7 @@ static inline int is_zero_ether_addr(const u8 *addr)
 */
 */
static inline int is_multicast_ether_addr(const u8 *addr)
static inline int is_multicast_ether_addr(const u8 *addr)
{
{
	return (0x01 & addr[0]);
	return 0x01 & addr[0];
}
}


/**
/**
@@ -82,7 +82,7 @@ static inline int is_multicast_ether_addr(const u8 *addr)
 */
 */
static inline int is_local_ether_addr(const u8 *addr)
static inline int is_local_ether_addr(const u8 *addr)
{
{
	return (0x02 & addr[0]);
	return 0x02 & addr[0];
}
}


/**
/**
+1 −1
Original line number Original line Diff line number Diff line
@@ -1676,7 +1676,7 @@ static inline void netif_wake_subqueue(struct net_device *dev, u16 queue_index)
 */
 */
static inline int netif_is_multiqueue(const struct net_device *dev)
static inline int netif_is_multiqueue(const struct net_device *dev)
{
{
	return (dev->num_tx_queues > 1);
	return dev->num_tx_queues > 1;
}
}


extern void netif_set_real_num_tx_queues(struct net_device *dev,
extern void netif_set_real_num_tx_queues(struct net_device *dev,
+3 −3
Original line number Original line Diff line number Diff line
@@ -601,7 +601,7 @@ static inline int skb_queue_empty(const struct sk_buff_head *list)
static inline bool skb_queue_is_last(const struct sk_buff_head *list,
static inline bool skb_queue_is_last(const struct sk_buff_head *list,
				     const struct sk_buff *skb)
				     const struct sk_buff *skb)
{
{
	return (skb->next == (struct sk_buff *) list);
	return skb->next == (struct sk_buff *)list;
}
}


/**
/**
@@ -614,7 +614,7 @@ static inline bool skb_queue_is_last(const struct sk_buff_head *list,
static inline bool skb_queue_is_first(const struct sk_buff_head *list,
static inline bool skb_queue_is_first(const struct sk_buff_head *list,
				      const struct sk_buff *skb)
				      const struct sk_buff *skb)
{
{
	return (skb->prev == (struct sk_buff *) list);
	return skb->prev == (struct sk_buff *)list;
}
}


/**
/**
@@ -2156,7 +2156,7 @@ static inline u16 skb_get_rx_queue(const struct sk_buff *skb)


static inline bool skb_rx_queue_recorded(const struct sk_buff *skb)
static inline bool skb_rx_queue_recorded(const struct sk_buff *skb)
{
{
	return (skb->queue_mapping != 0);
	return skb->queue_mapping != 0;
}
}


extern u16 skb_tx_hash(const struct net_device *dev,
extern u16 skb_tx_hash(const struct net_device *dev,
+1 −1
Original line number Original line Diff line number Diff line
@@ -233,7 +233,7 @@ static inline void inquiry_cache_init(struct hci_dev *hdev)
static inline int inquiry_cache_empty(struct hci_dev *hdev)
static inline int inquiry_cache_empty(struct hci_dev *hdev)
{
{
	struct inquiry_cache *c = &hdev->inq_cache;
	struct inquiry_cache *c = &hdev->inq_cache;
	return (c->list == NULL);
	return c->list == NULL;
}
}


static inline long inquiry_cache_age(struct hci_dev *hdev)
static inline long inquiry_cache_age(struct hci_dev *hdev)
Loading