summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCheoleun Moon <chleun.moon@samsung.com>2020-04-02 16:30:26 +0900
committerCheoleun Moon <chleun.moon@samsung.com>2020-04-02 16:30:26 +0900
commit52fa7c5973b0adebcb6c298a786f40a4d9cd615d (patch)
tree846df6d41cbbd6d32ae1ffd2ffe590da6699640a /src
parentb867cf4ac3112a70ea00cbe93564762fcf5e46a1 (diff)
downloadwifi-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.c5
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);
}