Remove deprecated UNUSED macro (1/5)

Generated automatically with coccinelle

/* This rule matches functions with arguments
 * that have an UNUSED(arg) in the body.
 */
@r1@
identifier arg;
identifier fn;
type t;
parameter list[n] P;
@@

fn(P, const t arg) { ...
 UNUSED(arg);
 ...
 }

/* This rule removes the UNUSED line, and adds
 * UNUSED_ATTR to the parameter list.
 */
@depends on r1@
identifier r1.arg;
identifier r1.fn;
type r1.t;
parameter list[r1.n] r1.P;
typedef UNUSED_ATTR;
@@

fn(P,
- const t arg
+ UNUSED_ATTR GETRIDOFTHISCOMMA, const t arg
 ) { ...
-UNUSED(arg);
 ...
 }

Test: mma -j32

Change-Id: Idcaadd688d669d484e557becd050e69454508f3c
diff --git a/bta/sys/bta_sys_conn.cc b/bta/sys/bta_sys_conn.cc
index 1fae9e7..6b1cc2c 100644
--- a/bta/sys/bta_sys_conn.cc
+++ b/bta/sys/bta_sys_conn.cc
@@ -348,10 +348,9 @@
 ** Returns          void
 **
 *******************************************************************************/
-void bta_sys_sco_use(uint8_t id, uint8_t app_id, BD_ADDR peer_addr)
+void bta_sys_sco_use(UNUSED_ATTR uint8_t id, uint8_t app_id,
+                     BD_ADDR peer_addr)
 {
-    UNUSED(id);
-
     /* AV streaming need to be suspended before SCO is connected. */
     if(bta_sys_cb.p_sco_cb)
     {
@@ -370,10 +369,10 @@
 ** Returns          void
 **
 *******************************************************************************/
-void bta_sys_sco_unuse(uint8_t id, uint8_t app_id, BD_ADDR peer_addr)
+void bta_sys_sco_unuse(UNUSED_ATTR uint8_t id, uint8_t app_id,
+                       BD_ADDR peer_addr)
 {
     uint8_t num_sco_links;
-    UNUSED(id);
 
     if((bta_sys_cb.p_sco_cb))
     {