Commit 36b05114 authored by Szymon Janc's avatar Szymon Janc Committed by Samuel Ortiz

NFC: Remove unneeded LLCP function return calls

There is no need for return statement at the end of function returning
void.
Signed-off-by: default avatarSzymon Janc <szymon.janc@tieto.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent f9fc36f4
...@@ -824,9 +824,6 @@ static void nfc_llcp_recv_connect(struct nfc_llcp_local *local, ...@@ -824,9 +824,6 @@ static void nfc_llcp_recv_connect(struct nfc_llcp_local *local,
fail: fail:
/* Send DM */ /* Send DM */
nfc_llcp_send_dm(local, dsap, ssap, reason); nfc_llcp_send_dm(local, dsap, ssap, reason);
return;
} }
int nfc_llcp_queue_i_frames(struct nfc_llcp_sock *sock) int nfc_llcp_queue_i_frames(struct nfc_llcp_sock *sock)
...@@ -1039,8 +1036,6 @@ static void nfc_llcp_recv_dm(struct nfc_llcp_local *local, struct sk_buff *skb) ...@@ -1039,8 +1036,6 @@ static void nfc_llcp_recv_dm(struct nfc_llcp_local *local, struct sk_buff *skb)
sk->sk_state_change(sk); sk->sk_state_change(sk);
nfc_llcp_sock_put(llcp_sock); nfc_llcp_sock_put(llcp_sock);
return;
} }
static void nfc_llcp_recv_snl(struct nfc_llcp_local *local, static void nfc_llcp_recv_snl(struct nfc_llcp_local *local,
...@@ -1170,8 +1165,6 @@ static void nfc_llcp_rx_work(struct work_struct *work) ...@@ -1170,8 +1165,6 @@ static void nfc_llcp_rx_work(struct work_struct *work)
schedule_work(&local->tx_work); schedule_work(&local->tx_work);
kfree_skb(local->rx_pending); kfree_skb(local->rx_pending);
local->rx_pending = NULL; local->rx_pending = NULL;
return;
} }
void nfc_llcp_recv(void *data, struct sk_buff *skb, int err) void nfc_llcp_recv(void *data, struct sk_buff *skb, int err)
...@@ -1187,8 +1180,6 @@ void nfc_llcp_recv(void *data, struct sk_buff *skb, int err) ...@@ -1187,8 +1180,6 @@ void nfc_llcp_recv(void *data, struct sk_buff *skb, int err)
local->rx_pending = skb_get(skb); local->rx_pending = skb_get(skb);
del_timer(&local->link_timer); del_timer(&local->link_timer);
schedule_work(&local->rx_work); schedule_work(&local->rx_work);
return;
} }
int nfc_llcp_data_received(struct nfc_dev *dev, struct sk_buff *skb) int nfc_llcp_data_received(struct nfc_dev *dev, struct sk_buff *skb)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment