Skip to content

Commit 8e87d14

Browse files
yoshfujiDavid S. Miller
authored andcommitted
[NET] BLUETOOTH: Fix whitespace errors.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 528930b commit 8e87d14

22 files changed

Lines changed: 270 additions & 270 deletions

File tree

‎net/bluetooth/af_bluetooth.c‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
BlueZ - Bluetooth protocol stack for Linux
33
Copyright (C) 2000-2001 Qualcomm Incorporated
44
@@ -12,13 +12,13 @@
1212
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1313
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS.
1414
IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) AND AUTHOR(S) BE LIABLE FOR ANY
15-
CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES
16-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
17-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15+
CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES
16+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
17+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1818
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1919
20-
ALL LIABILITY, INCLUDING LIABILITY FOR INFRINGEMENT OF ANY PATENTS,
21-
COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS, RELATING TO USE OF THIS
20+
ALL LIABILITY, INCLUDING LIABILITY FOR INFRINGEMENT OF ANY PATENTS,
21+
COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS, RELATING TO USE OF THIS
2222
SOFTWARE IS DISCLAIMED.
2323
*/
2424

@@ -119,7 +119,7 @@ static int bt_sock_create(struct socket *sock, int proto)
119119

120120
read_unlock(&bt_proto_lock);
121121

122-
return err;
122+
return err;
123123
}
124124

125125
void bt_sock_link(struct bt_sock_list *l, struct sock *sk)
@@ -265,7 +265,7 @@ unsigned int bt_sock_poll(struct file * file, struct socket *sock, poll_table *w
265265
if (sk->sk_shutdown == SHUTDOWN_MASK)
266266
mask |= POLLHUP;
267267

268-
if (!skb_queue_empty(&sk->sk_receive_queue) ||
268+
if (!skb_queue_empty(&sk->sk_receive_queue) ||
269269
(sk->sk_shutdown & RCV_SHUTDOWN))
270270
mask |= POLLIN | POLLRDNORM;
271271

‎net/bluetooth/bnep/bnep.h‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
BNEP protocol definition for Linux Bluetooth stack (BlueZ).
33
Copyright (C) 2002 Maxim Krasnyansky <maxk@qualcomm.com>
4-
4+
55
This program is free software; you can redistribute it and/or modify
66
it under the terms of the GNU General Public License, version 2, as
77
published by the Free Software Foundation.
@@ -60,7 +60,7 @@
6060
// Extension types
6161
#define BNEP_EXT_CONTROL 0x00
6262

63-
// Response messages
63+
// Response messages
6464
#define BNEP_SUCCESS 0x00
6565

6666
#define BNEP_CONN_INVALID_DST 0x01
@@ -81,7 +81,7 @@
8181
#define BNEP_CONNECT_TO 15
8282
#define BNEP_FILTER_TO 15
8383

84-
// Headers
84+
// Headers
8585
#define BNEP_TYPE_MASK 0x7f
8686
#define BNEP_EXT_HEADER 0x80
8787

@@ -132,7 +132,7 @@ struct bnep_conndel_req {
132132
struct bnep_conninfo {
133133
__u32 flags;
134134
__u16 role;
135-
__u16 state;
135+
__u16 state;
136136
__u8 dst[ETH_ALEN];
137137
char device[16];
138138
};
@@ -155,18 +155,18 @@ int bnep_get_conninfo(struct bnep_conninfo *ci);
155155
// BNEP sessions
156156
struct bnep_session {
157157
struct list_head list;
158-
158+
159159
unsigned int role;
160-
unsigned long state;
161-
unsigned long flags;
160+
unsigned long state;
161+
unsigned long flags;
162162
atomic_t killed;
163163

164164
struct ethhdr eh;
165165
struct msghdr msg;
166166

167167
struct bnep_proto_filter proto_filter[BNEP_MAX_PROTO_FILTERS];
168168
u64 mc_filter;
169-
169+
170170
struct socket *sock;
171171
struct net_device *dev;
172172
struct net_device_stats stats;
@@ -178,7 +178,7 @@ int bnep_sock_cleanup(void);
178178

179179
static inline int bnep_mc_hash(__u8 *addr)
180180
{
181-
return (crc32_be(~0, addr, ETH_ALEN) >> 26);
181+
return (crc32_be(~0, addr, ETH_ALEN) >> 26);
182182
}
183183

184184
#endif

‎net/bluetooth/bnep/core.c‎

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
BNEP implementation for Linux Bluetooth stack (BlueZ).
33
Copyright (C) 2001-2002 Inventel Systemes
44
Written 2001-2002 by
@@ -15,19 +15,19 @@
1515
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1616
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS.
1717
IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) AND AUTHOR(S) BE LIABLE FOR ANY
18-
CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES
19-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
20-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
18+
CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES
19+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
20+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
2121
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2222
23-
ALL LIABILITY, INCLUDING LIABILITY FOR INFRINGEMENT OF ANY PATENTS,
24-
COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS, RELATING TO USE OF THIS
23+
ALL LIABILITY, INCLUDING LIABILITY FOR INFRINGEMENT OF ANY PATENTS,
24+
COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS, RELATING TO USE OF THIS
2525
SOFTWARE IS DISCLAIMED.
2626
*/
2727

2828
/*
2929
* $Id: core.c,v 1.20 2002/08/04 21:23:58 maxk Exp $
30-
*/
30+
*/
3131

3232
#include <linux/module.h>
3333

@@ -74,7 +74,7 @@ static struct bnep_session *__bnep_get_session(u8 *dst)
7474
BT_DBG("");
7575

7676
list_for_each(p, &bnep_session_list) {
77-
s = list_entry(p, struct bnep_session, list);
77+
s = list_entry(p, struct bnep_session, list);
7878
if (!compare_ether_addr(dst, s->eh.h_source))
7979
return s;
8080
}
@@ -87,7 +87,7 @@ static void __bnep_link_session(struct bnep_session *s)
8787
by the socket layer which has to hold the refference to this module.
8888
*/
8989
__module_get(THIS_MODULE);
90-
list_add(&s->list, &bnep_session_list);
90+
list_add(&s->list, &bnep_session_list);
9191
}
9292

9393
static void __bnep_unlink_session(struct bnep_session *s)
@@ -203,7 +203,7 @@ static int bnep_ctrl_set_mcfilter(struct bnep_session *s, u8 *data, int len)
203203

204204
memcpy(a1, data, ETH_ALEN); data += ETH_ALEN;
205205
a2 = data; data += ETH_ALEN;
206-
206+
207207
BT_DBG("mc filter %s -> %s",
208208
batostr((void *) a1), batostr((void *) a2));
209209

@@ -277,7 +277,7 @@ static int bnep_rx_extension(struct bnep_session *s, struct sk_buff *skb)
277277
}
278278

279279
BT_DBG("type 0x%x len %d", h->type, h->len);
280-
280+
281281
switch (h->type & BNEP_TYPE_MASK) {
282282
case BNEP_EXT_CONTROL:
283283
bnep_rx_control(s, skb->data, skb->len);
@@ -293,7 +293,7 @@ static int bnep_rx_extension(struct bnep_session *s, struct sk_buff *skb)
293293
break;
294294
}
295295
} while (!err && (h->type & BNEP_EXT_HEADER));
296-
296+
297297
return err;
298298
}
299299

@@ -319,7 +319,7 @@ static inline int bnep_rx_frame(struct bnep_session *s, struct sk_buff *skb)
319319

320320
if ((type & BNEP_TYPE_MASK) > BNEP_RX_TYPES)
321321
goto badframe;
322-
322+
323323
if ((type & BNEP_TYPE_MASK) == BNEP_CONTROL) {
324324
bnep_rx_control(s, skb->data, skb->len);
325325
kfree_skb(skb);
@@ -345,7 +345,7 @@ static inline int bnep_rx_frame(struct bnep_session *s, struct sk_buff *skb)
345345
goto badframe;
346346
s->eh.h_proto = get_unaligned((__be16 *) (skb->data - 2));
347347
}
348-
348+
349349
/* We have to alloc new skb and copy data here :(. Because original skb
350350
* may not be modified and because of the alignment requirements. */
351351
nskb = alloc_skb(2 + ETH_HLEN + skb->len, GFP_KERNEL);
@@ -361,7 +361,7 @@ static inline int bnep_rx_frame(struct bnep_session *s, struct sk_buff *skb)
361361
case BNEP_COMPRESSED:
362362
memcpy(__skb_put(nskb, ETH_HLEN), &s->eh, ETH_HLEN);
363363
break;
364-
364+
365365
case BNEP_COMPRESSED_SRC_ONLY:
366366
memcpy(__skb_put(nskb, ETH_ALEN), s->eh.h_dest, ETH_ALEN);
367367
memcpy(__skb_put(nskb, ETH_ALEN), skb->mac.raw, ETH_ALEN);
@@ -381,7 +381,7 @@ static inline int bnep_rx_frame(struct bnep_session *s, struct sk_buff *skb)
381381

382382
memcpy(__skb_put(nskb, skb->len), skb->data, skb->len);
383383
kfree_skb(skb);
384-
384+
385385
s->stats.rx_packets++;
386386
nskb->dev = dev;
387387
nskb->ip_summed = CHECKSUM_NONE;
@@ -435,7 +435,7 @@ static inline int bnep_tx_frame(struct bnep_session *s, struct sk_buff *skb)
435435
iv[il++] = (struct kvec) { eh->h_source, ETH_ALEN };
436436
len += ETH_ALEN;
437437
break;
438-
438+
439439
case BNEP_COMPRESSED_DST_ONLY:
440440
iv[il++] = (struct kvec) { eh->h_dest, ETH_ALEN };
441441
len += ETH_ALEN;
@@ -445,7 +445,7 @@ static inline int bnep_tx_frame(struct bnep_session *s, struct sk_buff *skb)
445445
send:
446446
iv[il++] = (struct kvec) { skb->data, skb->len };
447447
len += skb->len;
448-
448+
449449
/* FIXME: linearize skb */
450450
{
451451
len = kernel_sendmsg(sock, &s->msg, iv, il, len);
@@ -471,7 +471,7 @@ static int bnep_session(void *arg)
471471

472472
BT_DBG("");
473473

474-
daemonize("kbnepd %s", dev->name);
474+
daemonize("kbnepd %s", dev->name);
475475
set_user_nice(current, -15);
476476
current->flags |= PF_NOFREEZE;
477477

@@ -488,13 +488,13 @@ static int bnep_session(void *arg)
488488

489489
if (sk->sk_state != BT_CONNECTED)
490490
break;
491-
491+
492492
// TX
493493
while ((skb = skb_dequeue(&sk->sk_write_queue)))
494494
if (bnep_tx_frame(s, skb))
495495
break;
496496
netif_wake_queue(dev);
497-
497+
498498
schedule();
499499
}
500500
set_current_state(TASK_RUNNING);
@@ -573,7 +573,7 @@ int bnep_add_connection(struct bnep_connadd_req *req, struct socket *sock)
573573
s->sock = sock;
574574
s->role = req->role;
575575
s->state = BT_CONNECTED;
576-
576+
577577
s->msg.msg_flags = MSG_NOSIGNAL;
578578

579579
#ifdef CONFIG_BT_BNEP_MC_FILTER
@@ -594,7 +594,7 @@ int bnep_add_connection(struct bnep_connadd_req *req, struct socket *sock)
594594
}
595595

596596
__bnep_link_session(s);
597-
597+
598598
err = kernel_thread(bnep_session, s, CLONE_KERNEL);
599599
if (err < 0) {
600600
/* Session thread start failed, gotta cleanup. */
@@ -627,7 +627,7 @@ int bnep_del_connection(struct bnep_conndel_req *req)
627627
/* Wakeup user-space which is polling for socket errors.
628628
* This is temporary hack untill we have shutdown in L2CAP */
629629
s->sock->sk->sk_err = EUNATCH;
630-
630+
631631
/* Kill session thread */
632632
atomic_inc(&s->killed);
633633
wake_up_interruptible(s->sock->sk->sk_sleep);
@@ -661,7 +661,7 @@ int bnep_get_connlist(struct bnep_connlist_req *req)
661661
s = list_entry(p, struct bnep_session, list);
662662

663663
__bnep_copy_ci(&ci, s);
664-
664+
665665
if (copy_to_user(req->ci, &ci, sizeof(ci))) {
666666
err = -EFAULT;
667667
break;
@@ -696,7 +696,7 @@ int bnep_get_conninfo(struct bnep_conninfo *ci)
696696
}
697697

698698
static int __init bnep_init(void)
699-
{
699+
{
700700
char flt[50] = "";
701701

702702
l2cap_load();

0 commit comments

Comments
 (0)