From: Samuel Ortiz Date: Fri, 17 Jun 2011 01:23:33 +0000 (+0200) Subject: adapter: Fix compilation errors X-Git-Tag: 0.1~139 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7a77011ce25dd0144b5095ad3a961a9cb29e342f;p=platform%2Fupstream%2Fneard.git adapter: Fix compilation errors --- diff --git a/src/adapter.c b/src/adapter.c index 626bbe9..274f95f 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -360,12 +360,9 @@ static void tag_read_cb(uint32_t adapter_idx, int status) int __near_adapter_add_target(uint32_t idx, struct near_target *target) { struct near_adapter *adapter; - uint32_t target_idx; DBG("idx %d", idx); - target_idx = __near_target_get_idx(target); - adapter = g_hash_table_lookup(adapter_hash, GINT_TO_POINTER(idx)); if (adapter == NULL) return -ENODEV; @@ -384,12 +381,9 @@ int __near_adapter_add_target(uint32_t idx, struct near_target *target) int __near_adapter_remove_target(uint32_t idx, struct near_target *target) { struct near_adapter *adapter; - uint32_t target_idx; DBG("idx %d", idx); - target_idx = __near_target_get_idx(target); - adapter = g_hash_table_lookup(adapter_hash, GINT_TO_POINTER(idx)); if (adapter == NULL) return -ENODEV;