mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 07:04:24 +00:00
staging: wilc1000: Modify tcp_process to return void rather than int
tcp_process() returns int, which is not used anywhere. So, change function header to return void intead of int and remove all uses of the local variable ret, which is used as a return variable in the function. Signed-off-by: Janani Ravichandran <janani.rvchndrn@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
792f4b1c4e
commit
aae9620151
1 changed files with 1 additions and 7 deletions
|
@ -207,9 +207,8 @@ static inline int add_tcp_pending_ack(u32 ack, u32 session_index,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static inline int tcp_process(struct net_device *dev, struct txq_entry_t *tqe)
|
||||
static inline void tcp_process(struct net_device *dev, struct txq_entry_t *tqe)
|
||||
{
|
||||
int ret;
|
||||
u8 *eth_hdr_ptr;
|
||||
u8 *buffer = tqe->buffer;
|
||||
unsigned short h_proto;
|
||||
|
@ -267,14 +266,9 @@ static inline int tcp_process(struct net_device *dev, struct txq_entry_t *tqe)
|
|||
add_tcp_pending_ack(ack_no, i, tqe);
|
||||
}
|
||||
|
||||
} else {
|
||||
ret = 0;
|
||||
}
|
||||
} else {
|
||||
ret = 0;
|
||||
}
|
||||
spin_unlock_irqrestore(&wilc->txq_spinlock, flags);
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int wilc_wlan_txq_filter_dup_tcp_ack(struct net_device *dev)
|
||||
|
|
Loading…
Reference in a new issue