]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
Bluetooth: Remove unnecessary braces from one-line if-statement
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 2 Dec 2013 20:13:24 +0000 (22:13 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 5 Dec 2013 15:05:32 +0000 (07:05 -0800)
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>
net/bluetooth/l2cap_core.c

index 4af3821df880f70dd17cd36161eff766c3e49334..70be2eb8ed037db0a0fa450dd8e60116a31de1ab 100644 (file)
@@ -6612,11 +6612,10 @@ int l2cap_security_cfm(struct hci_conn *hcon, u8 status, u8 encrypt)
                }
 
                if (chan->state == BT_CONNECT) {
-                       if (!status) {
+                       if (!status)
                                l2cap_start_connection(chan);
-                       } else {
+                       else
                                __set_chan_timer(chan, L2CAP_DISC_TIMEOUT);
-                       }
                } else if (chan->state == BT_CONNECT2) {
                        struct l2cap_conn_rsp rsp;
                        __u16 res, stat;