[PATCH] drivers: bluetooth: hci_serdev: Removed unnecessary curly braces

2018-05-14 Thread Vaibhav Murkute
checkpatch.pl shows a warning for these unnecessary curly braces.
so just removed those curly braces.

Signed-off-by: Vaibhav Murkute <vaibhavmurkut...@gmail.com>
---
 drivers/bluetooth/hci_serdev.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/bluetooth/hci_serdev.c b/drivers/bluetooth/hci_serdev.c
index e0e6461..a0e9398 100644
--- a/drivers/bluetooth/hci_serdev.c
+++ b/drivers/bluetooth/hci_serdev.c
@@ -204,9 +204,8 @@ static int hci_uart_setup(struct hci_dev *hdev)
return 0;
}
 
-   if (skb->len != sizeof(*ver)) {
+   if (skb->len != sizeof(*ver))
bt_dev_err(hdev, "Event length mismatch for version info");
-   }
 
kfree_skb(skb);
return 0;
-- 
2.7.4



[PATCH] drivers: bluetooth: hci_serdev: Removed unnecessary curly braces

2018-05-14 Thread Vaibhav Murkute
checkpatch.pl shows a warning for these unnecessary curly braces.
so just removed those curly braces.

Signed-off-by: Vaibhav Murkute 
---
 drivers/bluetooth/hci_serdev.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/bluetooth/hci_serdev.c b/drivers/bluetooth/hci_serdev.c
index e0e6461..a0e9398 100644
--- a/drivers/bluetooth/hci_serdev.c
+++ b/drivers/bluetooth/hci_serdev.c
@@ -204,9 +204,8 @@ static int hci_uart_setup(struct hci_dev *hdev)
return 0;
}
 
-   if (skb->len != sizeof(*ver)) {
+   if (skb->len != sizeof(*ver))
bt_dev_err(hdev, "Event length mismatch for version info");
-   }
 
kfree_skb(skb);
return 0;
-- 
2.7.4



[PATCH] drivers: bluetooth: hci_serdev: Removed unnecessary curly braces

2018-05-11 Thread Vaibhav Murkute
checkpatch.pl shows a warning for these unnecessary curly braces.
so just removed those curly braces.

Signed-off-by: Vaibhav Murkute <vaibhavmurkut...@gmail.com>
---
 drivers/bluetooth/hci_serdev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/bluetooth/hci_serdev.c b/drivers/bluetooth/hci_serdev.c
index e0e6461..137c314 100644
--- a/drivers/bluetooth/hci_serdev.c
+++ b/drivers/bluetooth/hci_serdev.c
@@ -204,9 +204,9 @@ static int hci_uart_setup(struct hci_dev *hdev)
return 0;
}
 
-   if (skb->len != sizeof(*ver)) {
+   if (skb->len != sizeof(*ver))
bt_dev_err(hdev, "Event length mismatch for version info");
-   }
+
 
kfree_skb(skb);
return 0;
-- 
2.7.4



[PATCH] drivers: bluetooth: hci_serdev: Removed unnecessary curly braces

2018-05-11 Thread Vaibhav Murkute
checkpatch.pl shows a warning for these unnecessary curly braces.
so just removed those curly braces.

Signed-off-by: Vaibhav Murkute 
---
 drivers/bluetooth/hci_serdev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/bluetooth/hci_serdev.c b/drivers/bluetooth/hci_serdev.c
index e0e6461..137c314 100644
--- a/drivers/bluetooth/hci_serdev.c
+++ b/drivers/bluetooth/hci_serdev.c
@@ -204,9 +204,9 @@ static int hci_uart_setup(struct hci_dev *hdev)
return 0;
}
 
-   if (skb->len != sizeof(*ver)) {
+   if (skb->len != sizeof(*ver))
bt_dev_err(hdev, "Event length mismatch for version info");
-   }
+
 
kfree_skb(skb);
return 0;
-- 
2.7.4



[PATCH 2/2] drivers: android: binder: fixed a brace coding style issue

2018-03-09 Thread Vaibhav Murkute
Fixed a coding style issue.

Signed-off-by: Vaibhav Murkute <vaibhavmurkut...@gmail.com>
---
 drivers/android/binder.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/android/binder.c b/drivers/android/binder.c
index 764b63a5aade..2729bb75ca19 100644
--- a/drivers/android/binder.c
+++ b/drivers/android/binder.c
@@ -2641,11 +2641,11 @@ static bool binder_proc_transaction(struct 
binder_transaction *t,
binder_node_lock(node);
if (oneway) {
BUG_ON(thread);
-   if (node->has_async_transaction) {
+   if (node->has_async_transaction)
pending_async = true;
-   } else {
+   else
node->has_async_transaction = true;
-   }
+
}
 
binder_inner_proc_lock(proc);
-- 
2.15.1



[PATCH 2/2] drivers: android: binder: fixed a brace coding style issue

2018-03-09 Thread Vaibhav Murkute
Fixed a coding style issue.

Signed-off-by: Vaibhav Murkute 
---
 drivers/android/binder.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/android/binder.c b/drivers/android/binder.c
index 764b63a5aade..2729bb75ca19 100644
--- a/drivers/android/binder.c
+++ b/drivers/android/binder.c
@@ -2641,11 +2641,11 @@ static bool binder_proc_transaction(struct 
binder_transaction *t,
binder_node_lock(node);
if (oneway) {
BUG_ON(thread);
-   if (node->has_async_transaction) {
+   if (node->has_async_transaction)
pending_async = true;
-   } else {
+   else
node->has_async_transaction = true;
-   }
+
}
 
binder_inner_proc_lock(proc);
-- 
2.15.1



[PATCH] drivers: vhost: vsock: fixed a brace coding style issue

2018-03-08 Thread Vaibhav Murkute
Fixed a coding style issue.

Signed-off-by: Vaibhav Murkute <vaibhavmurkut...@gmail.com>
---
 drivers/vhost/vsock.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/vhost/vsock.c b/drivers/vhost/vsock.c
index 0d14e2ff19f1..0898dbdbf955 100644
--- a/drivers/vhost/vsock.c
+++ b/drivers/vhost/vsock.c
@@ -61,9 +61,9 @@ static struct vhost_vsock *__vhost_vsock_get(u32 guest_cid)
if (other_cid == 0)
continue;
 
-   if (other_cid == guest_cid) {
+   if (other_cid == guest_cid)
return vsock;
-   }
+
}
 
return NULL;
-- 
2.15.1



[PATCH] drivers: vhost: vsock: fixed a brace coding style issue

2018-03-08 Thread Vaibhav Murkute
Fixed a coding style issue.

Signed-off-by: Vaibhav Murkute 
---
 drivers/vhost/vsock.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/vhost/vsock.c b/drivers/vhost/vsock.c
index 0d14e2ff19f1..0898dbdbf955 100644
--- a/drivers/vhost/vsock.c
+++ b/drivers/vhost/vsock.c
@@ -61,9 +61,9 @@ static struct vhost_vsock *__vhost_vsock_get(u32 guest_cid)
if (other_cid == 0)
continue;
 
-   if (other_cid == guest_cid) {
+   if (other_cid == guest_cid)
return vsock;
-   }
+
}
 
return NULL;
-- 
2.15.1