summaryrefslogtreecommitdiffstats
path: root/audio/pcm_bluetooth.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-06-12 06:43:16 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-06-12 06:43:16 +0000
commite703434f83af5a41cb2f27604aedc8b2d15024e2 (patch)
tree71bcb3e17135ef1c23c2f63dc3b19e4479f7682d /audio/pcm_bluetooth.c
parentc1fe207c205d3122a496b11d36132940e34568a4 (diff)
Cleanup
Diffstat (limited to 'audio/pcm_bluetooth.c')
-rw-r--r--audio/pcm_bluetooth.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/audio/pcm_bluetooth.c b/audio/pcm_bluetooth.c
index 10182993..42c1e557 100644
--- a/audio/pcm_bluetooth.c
+++ b/audio/pcm_bluetooth.c
@@ -346,11 +346,11 @@ static int bluetooth_recvmsg_fd(struct bluetooth_data *data)
return -err;
}
- if(pkt.type == PKT_TYPE_CFG_RSP) {
+ if (pkt.type == PKT_TYPE_CFG_RSP) {
struct cmsghdr *cmsg;
/* Receive auxiliary data in msgh */
for (cmsg = CMSG_FIRSTHDR(&msgh); cmsg != NULL;
- cmsg = CMSG_NXTHDR(&msgh,cmsg)) {
+ cmsg = CMSG_NXTHDR(&msgh,cmsg)) {
if (cmsg->cmsg_level == SOL_SOCKET
&& cmsg->cmsg_type == SCM_RIGHTS)
data->cfg.fd = (*(int *) CMSG_DATA(cmsg));
@@ -442,7 +442,8 @@ static int bluetooth_cfg(struct bluetooth_data *data)
goto done;
}
- if ((ret = bluetooth_recvmsg_fd(data)) < 0)
+ ret = bluetooth_recvmsg_fd(data);
+ if (ret < 0)
goto done;
/* It is possible there is some outstanding