diff options
author | Cheoleun Moon <chleun.moon@samsung.com> | 2020-04-02 16:30:26 +0900 |
---|---|---|
committer | Cheoleun Moon <chleun.moon@samsung.com> | 2020-04-02 16:30:26 +0900 |
commit | 52fa7c5973b0adebcb6c298a786f40a4d9cd615d (patch) | |
tree | 846df6d41cbbd6d32ae1ffd2ffe590da6699640a /src | |
parent | b867cf4ac3112a70ea00cbe93564762fcf5e46a1 (diff) | |
download | wifi-aware-52fa7c5973b0adebcb6c298a786f40a4d9cd615d.tar.gz wifi-aware-52fa7c5973b0adebcb6c298a786f40a4d9cd615d.tar.bz2 wifi-aware-52fa7c5973b0adebcb6c298a786f40a4d9cd615d.zip |
Remove unreachable codes
Diffstat (limited to 'src')
-rw-r--r-- | src/wifi-aware-peer.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/wifi-aware-peer.c b/src/wifi-aware-peer.c index f67c332..ec318f5 100644 --- a/src/wifi-aware-peer.c +++ b/src/wifi-aware-peer.c @@ -73,11 +73,6 @@ int _wifi_aware_peer_remove(GHashTable *peer_map, wifi_aware_peer_h peer) wifi_aware_peer_s *peer_handle = (wifi_aware_peer_s *)peer; RET_VAL_IF(peer_handle == NULL, WIFI_AWARE_ERROR_INVALID_PARAMETER, "peer is NULL"); - if (peer_handle == NULL) { - WIFI_AWARE_LOGE("peer is NULL"); - return WIFI_AWARE_ERROR_INVALID_PARAMETER; - } - if (!g_hash_table_remove(peer_map, GINT_TO_POINTER(peer_handle->id))) { WIFI_AWARE_LOGE("peer %d doesn't exist", peer_handle->id); } |