]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Bluetooth: Fix two minor style issues in management code
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 22 Feb 2012 10:59:01 +0000 (11:59 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 23 Feb 2012 11:06:58 +0000 (13:06 +0200)
WARNING: Statements terminations use 1 semicolon
+ return err;;

WARNING: space prohibited between function name and open parenthesis '('
+ err = cmd_status (sk, index, MGMT_OP_CONFIRM_NAME,

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/mgmt.c

index eefd08468002f6225db2dbb0f52a63096b5d148b..3f4c50eebbeae9de32e4b47f7b051cceabaedd76 100644 (file)
@@ -264,7 +264,7 @@ static int cmd_complete(struct sock *sk, u16 index, u16 cmd, u8 status,
        if (err < 0)
                kfree_skb(skb);
 
-       return err;;
+       return err;
 }
 
 static int read_version(struct sock *sk)
@@ -2532,7 +2532,7 @@ static int confirm_name(struct sock *sk, u16 index, void *data, u16 len)
 
        e = hci_inquiry_cache_lookup_unknown(hdev, &cp->addr.bdaddr);
        if (!e) {
-               err = cmd_status (sk, index, MGMT_OP_CONFIRM_NAME,
+               err = cmd_status(sk, index, MGMT_OP_CONFIRM_NAME,
                                MGMT_STATUS_INVALID_PARAMS);
                goto failed;
        }