mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
Bluetooth: fix indentation and alignment reported by checkpatch
Signed-off-by: Tomoyuki Matsushita <xorphitus@fastmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
committed by
Marcel Holtmann
parent
9ab9235fe5
commit
b8ddc3b14c
@@ -508,7 +508,7 @@ int bt_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
|
|||||||
amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk);
|
amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk);
|
||||||
if (amount < 0)
|
if (amount < 0)
|
||||||
amount = 0;
|
amount = 0;
|
||||||
err = put_user(amount, (int __user *) arg);
|
err = put_user(amount, (int __user *)arg);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TIOCINQ:
|
case TIOCINQ:
|
||||||
@@ -519,7 +519,7 @@ int bt_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
|
|||||||
skb = skb_peek(&sk->sk_receive_queue);
|
skb = skb_peek(&sk->sk_receive_queue);
|
||||||
amount = skb ? skb->len : 0;
|
amount = skb ? skb->len : 0;
|
||||||
release_sock(sk);
|
release_sock(sk);
|
||||||
err = put_user(amount, (int __user *) arg);
|
err = put_user(amount, (int __user *)arg);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@@ -637,7 +637,7 @@ static int bt_seq_show(struct seq_file *seq, void *v)
|
|||||||
struct bt_sock_list *l = PDE_DATA(file_inode(seq->file));
|
struct bt_sock_list *l = PDE_DATA(file_inode(seq->file));
|
||||||
|
|
||||||
if (v == SEQ_START_TOKEN) {
|
if (v == SEQ_START_TOKEN) {
|
||||||
seq_puts(seq ,"sk RefCnt Rmem Wmem User Inode Parent");
|
seq_puts(seq, "sk RefCnt Rmem Wmem User Inode Parent");
|
||||||
|
|
||||||
if (l->custom_seq_show) {
|
if (l->custom_seq_show) {
|
||||||
seq_putc(seq, ' ');
|
seq_putc(seq, ' ');
|
||||||
@@ -657,7 +657,7 @@ static int bt_seq_show(struct seq_file *seq, void *v)
|
|||||||
sk_wmem_alloc_get(sk),
|
sk_wmem_alloc_get(sk),
|
||||||
from_kuid(seq_user_ns(seq), sock_i_uid(sk)),
|
from_kuid(seq_user_ns(seq), sock_i_uid(sk)),
|
||||||
sock_i_ino(sk),
|
sock_i_ino(sk),
|
||||||
bt->parent? sock_i_ino(bt->parent): 0LU);
|
bt->parent ? sock_i_ino(bt->parent) : 0LU);
|
||||||
|
|
||||||
if (l->custom_seq_show) {
|
if (l->custom_seq_show) {
|
||||||
seq_putc(seq, ' ');
|
seq_putc(seq, ' ');
|
||||||
@@ -678,7 +678,7 @@ static const struct seq_operations bt_seq_ops = {
|
|||||||
|
|
||||||
int bt_procfs_init(struct net *net, const char *name,
|
int bt_procfs_init(struct net *net, const char *name,
|
||||||
struct bt_sock_list *sk_list,
|
struct bt_sock_list *sk_list,
|
||||||
int (* seq_show)(struct seq_file *, void *))
|
int (*seq_show)(struct seq_file *, void *))
|
||||||
{
|
{
|
||||||
sk_list->custom_seq_show = seq_show;
|
sk_list->custom_seq_show = seq_show;
|
||||||
|
|
||||||
@@ -694,7 +694,7 @@ void bt_procfs_cleanup(struct net *net, const char *name)
|
|||||||
#else
|
#else
|
||||||
int bt_procfs_init(struct net *net, const char *name,
|
int bt_procfs_init(struct net *net, const char *name,
|
||||||
struct bt_sock_list *sk_list,
|
struct bt_sock_list *sk_list,
|
||||||
int (* seq_show)(struct seq_file *, void *))
|
int (*seq_show)(struct seq_file *, void *))
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user