diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2012-02-22 05:59:01 -0500 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-02-23 06:06:58 -0500 |
commit | e5f0e151426bd83e4852a7a150fc6ad8ee349e69 (patch) | |
tree | 8d54652747eb9e9da28bf2068f48beb7f86239e4 /net/bluetooth/mgmt.c | |
parent | c0ecddc2507da980af307aae40d6bcdea4c195dc (diff) |
Bluetooth: Fix two minor style issues in management code
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>
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r-- | net/bluetooth/mgmt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index eefd08468002..3f4c50eebbea 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c | |||
@@ -264,7 +264,7 @@ static int cmd_complete(struct sock *sk, u16 index, u16 cmd, u8 status, | |||
264 | if (err < 0) | 264 | if (err < 0) |
265 | kfree_skb(skb); | 265 | kfree_skb(skb); |
266 | 266 | ||
267 | return err;; | 267 | return err; |
268 | } | 268 | } |
269 | 269 | ||
270 | static int read_version(struct sock *sk) | 270 | static int read_version(struct sock *sk) |
@@ -2532,7 +2532,7 @@ static int confirm_name(struct sock *sk, u16 index, void *data, u16 len) | |||
2532 | 2532 | ||
2533 | e = hci_inquiry_cache_lookup_unknown(hdev, &cp->addr.bdaddr); | 2533 | e = hci_inquiry_cache_lookup_unknown(hdev, &cp->addr.bdaddr); |
2534 | if (!e) { | 2534 | if (!e) { |
2535 | err = cmd_status (sk, index, MGMT_OP_CONFIRM_NAME, | 2535 | err = cmd_status(sk, index, MGMT_OP_CONFIRM_NAME, |
2536 | MGMT_STATUS_INVALID_PARAMS); | 2536 | MGMT_STATUS_INVALID_PARAMS); |
2537 | goto failed; | 2537 | goto failed; |
2538 | } | 2538 | } |