OSDN Git Service

fixed assignment with no effect
authorKim Schulz <k.schulz@samsung.com>
Mon, 30 Sep 2013 07:07:04 +0000 (09:07 +0200)
committerZhihai Xu <zhihaixu@google.com>
Tue, 3 Dec 2013 23:11:57 +0000 (15:11 -0800)
a variable was wrongfully assigned to itself insted.

Bug: 10998131
Change-Id: Ia563e9f8aa43e264a6664d81d917b7517e1c89b5

bta/hh/bta_hh_utils.c

index 0c67513..c7c783c 100644 (file)
@@ -335,7 +335,7 @@ void bta_hh_parse_keybd_rpt(tBTA_HH_BOOT_RPT *p_kb_data, UINT8 *p_report,
         APPL_TRACE_DEBUG1("found keycode %02x ",  this_report[xx]);
 #endif
         p_data->caps_lock   = p_kb->caps_lock;
-        p_kb->num_lock      = p_kb->num_lock;
+        p_data->num_lock      = p_kb->num_lock;
     }
 
     memset (p_kb->last_report, 0, BTA_HH_MAX_RPT_CHARS);