Incorrect return value fix 79/88179/1 accepted/tizen/common/20160919.070412 submit/tizen/20160919.000025
authorManasij Sur Roy <manasij.r@samsung.com>
Wed, 14 Sep 2016 09:27:01 +0000 (14:57 +0530)
committerManasij Sur Roy <manasij.r@samsung.com>
Wed, 14 Sep 2016 09:27:01 +0000 (14:57 +0530)
Change-Id: Ief95430c34a613228bc3200ed7ec87c8fcc1b2b7
Signed-off-by: Manasij Sur Roy <manasij.r@samsung.com>
client/fido_uaf_authenticator.c

index 9d48020..2e81a7b 100755 (executable)
@@ -32,8 +32,6 @@ fido_authenticator_get_title(const fido_authenticator_h auth, char **title)
 
        *title = strdup(priv->title);
 
-       RET_IF_FAIL(title == NULL, FIDO_ERROR_OUT_OF_MEMORY);
-
        return FIDO_ERROR_NONE;
 }
 
@@ -50,8 +48,6 @@ fido_authenticator_get_aaid(const fido_authenticator_h auth, char **aaid)
 
        *aaid = strdup(priv->aaid);
 
-       RET_IF_FAIL(aaid == NULL, FIDO_ERROR_OUT_OF_MEMORY);
-
        return FIDO_ERROR_NONE;
 }
 
@@ -68,8 +64,6 @@ fido_authenticator_get_description(const fido_authenticator_h auth, char **desc)
 
        *desc = strdup(priv->description);
 
-       RET_IF_FAIL(desc == NULL, FIDO_ERROR_OUT_OF_MEMORY);
-
        return FIDO_ERROR_NONE;
 }
 
@@ -86,8 +80,6 @@ fido_authenticator_get_assertion_scheme(const fido_authenticator_h auth, char **
 
        *scheme = strdup(priv->assertion_scheme);
 
-       RET_IF_FAIL(scheme == NULL, FIDO_ERROR_OUT_OF_MEMORY);
-
        return FIDO_ERROR_NONE;
 }
 
@@ -210,8 +202,6 @@ fido_authenticator_get_tc_display_type(const fido_authenticator_h auth, char **t
 
        *tc_display_content_type = strdup(priv->tc_display_content_type);
 
-       RET_IF_FAIL(tc_display_content_type == NULL, FIDO_ERROR_OUT_OF_MEMORY);
-
        return FIDO_ERROR_NONE;
 }
 
@@ -228,8 +218,6 @@ fido_authenticator_get_icon(const fido_authenticator_h auth, char **icon)
 
        *icon = strdup(priv->icon);
 
-       RET_IF_FAIL(icon == NULL, FIDO_ERROR_OUT_OF_MEMORY);
-
        return FIDO_ERROR_NONE;
 }