Skip to content

Commit b8ddc3b

Browse files
xorphitusholtmann
authored andcommitted
Bluetooth: fix indentation and alignment reported by checkpatch
Signed-off-by: Tomoyuki Matsushita <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
1 parent 9ab9235 commit b8ddc3b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

net/bluetooth/af_bluetooth.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ void bt_sock_reclassify_lock(struct sock *sk, int proto)
7272
BUG_ON(!sock_allow_reclassification(sk));
7373

7474
sock_lock_init_class_and_name(sk,
75-
bt_slock_key_strings[proto], &bt_slock_key[proto],
76-
bt_key_strings[proto], &bt_lock_key[proto]);
75+
bt_slock_key_strings[proto], &bt_slock_key[proto],
76+
bt_key_strings[proto], &bt_lock_key[proto]);
7777
}
7878
EXPORT_SYMBOL(bt_sock_reclassify_lock);
7979

@@ -451,7 +451,7 @@ static inline __poll_t bt_accept_poll(struct sock *parent)
451451
}
452452

453453
__poll_t bt_sock_poll(struct file *file, struct socket *sock,
454-
poll_table *wait)
454+
poll_table *wait)
455455
{
456456
struct sock *sk = sock->sk;
457457
__poll_t mask = 0;
@@ -478,8 +478,8 @@ __poll_t bt_sock_poll(struct file *file, struct socket *sock,
478478
mask |= EPOLLHUP;
479479

480480
if (sk->sk_state == BT_CONNECT ||
481-
sk->sk_state == BT_CONNECT2 ||
482-
sk->sk_state == BT_CONFIG)
481+
sk->sk_state == BT_CONNECT2 ||
482+
sk->sk_state == BT_CONFIG)
483483
return mask;
484484

485485
if (!test_bit(BT_SK_SUSPEND, &bt_sk(sk)->flags) && sock_writeable(sk))
@@ -508,7 +508,7 @@ int bt_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
508508
amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk);
509509
if (amount < 0)
510510
amount = 0;
511-
err = put_user(amount, (int __user *) arg);
511+
err = put_user(amount, (int __user *)arg);
512512
break;
513513

514514
case TIOCINQ:
@@ -519,7 +519,7 @@ int bt_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
519519
skb = skb_peek(&sk->sk_receive_queue);
520520
amount = skb ? skb->len : 0;
521521
release_sock(sk);
522-
err = put_user(amount, (int __user *) arg);
522+
err = put_user(amount, (int __user *)arg);
523523
break;
524524

525525
default:
@@ -637,7 +637,7 @@ static int bt_seq_show(struct seq_file *seq, void *v)
637637
struct bt_sock_list *l = PDE_DATA(file_inode(seq->file));
638638

639639
if (v == SEQ_START_TOKEN) {
640-
seq_puts(seq ,"sk RefCnt Rmem Wmem User Inode Parent");
640+
seq_puts(seq, "sk RefCnt Rmem Wmem User Inode Parent");
641641

642642
if (l->custom_seq_show) {
643643
seq_putc(seq, ' ');
@@ -657,7 +657,7 @@ static int bt_seq_show(struct seq_file *seq, void *v)
657657
sk_wmem_alloc_get(sk),
658658
from_kuid(seq_user_ns(seq), sock_i_uid(sk)),
659659
sock_i_ino(sk),
660-
bt->parent? sock_i_ino(bt->parent): 0LU);
660+
bt->parent ? sock_i_ino(bt->parent) : 0LU);
661661

662662
if (l->custom_seq_show) {
663663
seq_putc(seq, ' ');
@@ -678,7 +678,7 @@ static const struct seq_operations bt_seq_ops = {
678678

679679
int bt_procfs_init(struct net *net, const char *name,
680680
struct bt_sock_list *sk_list,
681-
int (* seq_show)(struct seq_file *, void *))
681+
int (*seq_show)(struct seq_file *, void *))
682682
{
683683
sk_list->custom_seq_show = seq_show;
684684

@@ -694,7 +694,7 @@ void bt_procfs_cleanup(struct net *net, const char *name)
694694
#else
695695
int bt_procfs_init(struct net *net, const char *name,
696696
struct bt_sock_list *sk_list,
697-
int (* seq_show)(struct seq_file *, void *))
697+
int (*seq_show)(struct seq_file *, void *))
698698
{
699699
return 0;
700700
}

0 commit comments

Comments
 (0)