diff options
author | Vikrampal Yadav <vikram.pal@samsung.com> | 2014-09-04 15:52:38 +0530 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-09-05 13:16:43 +0300 |
commit | 3002cd44a5e0fe0bf63a8c21ab6c8e65d243183c (patch) | |
tree | aaeb7d819422bf4736ad009d028dc463e2e061a0 /monitor/avctp.c | |
parent | ab77c4b6f3645e432500aed6cad793366322b8fd (diff) | |
download | bluez-3002cd44a5e0fe0bf63a8c21ab6c8e65d243183c.tar.gz |
monitor: Remove superfluous call to l2cap_frame_pull
Removed superfluous call to l2cap_frame_pull.
Diffstat (limited to 'monitor/avctp.c')
-rw-r--r-- | monitor/avctp.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/monitor/avctp.c b/monitor/avctp.c index 4968dcf81..c7e242b7c 100644 --- a/monitor/avctp.c +++ b/monitor/avctp.c @@ -580,16 +580,13 @@ static bool avrcp_list_player_attributes(struct l2cap_frame *frame, uint8_t ctype, uint8_t len, uint8_t indent) { - struct l2cap_frame avrcp_frame; uint8_t num; int i; if (len == 0) return true; - l2cap_frame_pull(&avrcp_frame, frame, 0); - - if (!l2cap_frame_get_u8(&avrcp_frame, &num)) + if (!l2cap_frame_get_u8(frame, &num)) return false; print_field("%*cAttributeCount: 0x%02x", (indent - 8), ' ', num); @@ -597,7 +594,7 @@ static bool avrcp_list_player_attributes(struct l2cap_frame *frame, for (i = 0; num > 0; num--, i++) { uint8_t attr; - if (!l2cap_frame_get_u8(&avrcp_frame, &attr)) + if (!l2cap_frame_get_u8(frame, &attr)) return false; print_field("%*cAttributeID: 0x%02x (%s)", (indent - 8), ' ', |