Fix Svace issue : 148626 04/103004/1
authorJihoon Jung <jh8801.jung@samsung.com>
Wed, 7 Dec 2016 04:29:28 +0000 (13:29 +0900)
committerJihoon Jung <jh8801.jung@samsung.com>
Wed, 7 Dec 2016 04:30:09 +0000 (13:30 +0900)
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
Change-Id: I2feb130f9d5f581da4b59ea8167ac7e4fa83a6f9

src/nfc_p2p_handover.c

index df933d8..de4056f 100755 (executable)
@@ -96,6 +96,7 @@ int nfc_p2p_connection_handover(nfc_p2p_target_h target,
        /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(target == NULL);
+       CHECK_INVALID(type < 0);
        CHECK_INVALID(type > NFC_AC_TYPE_UNKNOWN);
        CHECK_ACTIVATED();
 
@@ -115,9 +116,6 @@ int nfc_p2p_connection_handover(nfc_p2p_target_h target,
        case NFC_AC_TYPE_UNKNOWN:
                net_ac_type = NET_NFC_CONN_HANDOVER_CARRIER_UNKNOWN;
                break;
-
-       default:
-               break;
        }
 
        parameter = g_variant_new("(uu)",