diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2013-12-02 15:13:24 -0500 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2013-12-05 10:05:32 -0500 |
commit | 6d3c15da1ddbffff2d0f50132a239209b2fa138e (patch) | |
tree | 70c93eb12e8124cb388a8e27305ef6cc95ec0d17 | |
parent | 201a5929c8c788f9ef53b010065c9ce70c9c06f0 (diff) |
Bluetooth: Remove unnecessary braces from one-line if-statement
This patch is just a trivial coding style fix to remove unnecessary
braces from a one-line if-statement.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
-rw-r--r-- | net/bluetooth/l2cap_core.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index 4af3821df880..70be2eb8ed03 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c | |||
@@ -6612,11 +6612,10 @@ int l2cap_security_cfm(struct hci_conn *hcon, u8 status, u8 encrypt) | |||
6612 | } | 6612 | } |
6613 | 6613 | ||
6614 | if (chan->state == BT_CONNECT) { | 6614 | if (chan->state == BT_CONNECT) { |
6615 | if (!status) { | 6615 | if (!status) |
6616 | l2cap_start_connection(chan); | 6616 | l2cap_start_connection(chan); |
6617 | } else { | 6617 | else |
6618 | __set_chan_timer(chan, L2CAP_DISC_TIMEOUT); | 6618 | __set_chan_timer(chan, L2CAP_DISC_TIMEOUT); |
6619 | } | ||
6620 | } else if (chan->state == BT_CONNECT2) { | 6619 | } else if (chan->state == BT_CONNECT2) { |
6621 | struct l2cap_conn_rsp rsp; | 6620 | struct l2cap_conn_rsp rsp; |
6622 | __u16 res, stat; | 6621 | __u16 res, stat; |