summaryrefslogtreecommitdiff
path: root/hw/bt-sdp.c
diff options
context:
space:
mode:
authorAndrzej Zaborowski <balrog@zabor.org>2010-04-22 03:55:46 +0200
committerAndrzej Zaborowski <balrog@zabor.org>2010-04-22 03:55:46 +0200
commita6e4b143883b8504f6793966c36093354b38a889 (patch)
tree5a995a7405682a82f9542d820fec42b48a682b5f /hw/bt-sdp.c
parent7b1df88f284f462ecb236931ad863a815f243195 (diff)
bt-sdp: Fix an excessive ; and assignment of the wrong variable
Problem-spotted-by: Blue Swirl <blauwirbel@gmail.com> Signed-off-by: Andrew Zaborowski <balrogg@gmail.com>
Diffstat (limited to 'hw/bt-sdp.c')
-rw-r--r--hw/bt-sdp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/bt-sdp.c b/hw/bt-sdp.c
index b8732d062..cc0bf2f9b 100644
--- a/hw/bt-sdp.c
+++ b/hw/bt-sdp.c
@@ -159,7 +159,7 @@ static ssize_t sdp_svc_search(struct bt_l2cap_sdp_state_s *sdp,
if (len < 3)
return -SDP_INVALID_SYNTAX;
- end = (req[0] << 8) | req[1];
+ max = (req[0] << 8) | req[1];
req += 2;
len -= 2;
@@ -171,7 +171,7 @@ static ssize_t sdp_svc_search(struct bt_l2cap_sdp_state_s *sdp,
} else
start = 0;
- if (len > 1);
+ if (len > 1)
return -SDP_INVALID_SYNTAX;
/* Output the results */