Skip to content

Commit

Permalink
Bluetooth: Remove 'return' in void function
Browse files Browse the repository at this point in the history
void function return statements are not generally useful.

Signed-off-by: Meng Yu <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
  • Loading branch information
yumeng0117 authored and holtmann committed Apr 2, 2021
1 parent d58cf00 commit 82a1242
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions net/bluetooth/6lowpan.c
Original file line number Diff line number Diff line change
Expand Up @@ -841,8 +841,6 @@ static void chan_close_cb(struct l2cap_chan *chan)
} else {
spin_unlock(&devices_lock);
}

return;
}

static void chan_state_change_cb(struct l2cap_chan *chan, int state, int err)
Expand Down
2 changes: 0 additions & 2 deletions net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -676,8 +676,6 @@ void l2cap_chan_del(struct l2cap_chan *chan, int err)
skb_queue_purge(&chan->tx_q);
break;
}

return;
}
EXPORT_SYMBOL_GPL(l2cap_chan_del);

Expand Down

0 comments on commit 82a1242

Please sign in to comment.