Fix coverity issue 1149129 54/256154/1 accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified accepted/tizen_9.0_unified accepted/tizen_unified tizen tizen_6.5 tizen_7.0 tizen_7.0_hotfix tizen_8.0 tizen_9.0 accepted/tizen/6.5/unified/20211028.093144 accepted/tizen/7.0/unified/20221110.063556 accepted/tizen/7.0/unified/hotfix/20221116.104316 accepted/tizen/8.0/unified/20231005.092405 accepted/tizen/9.0/unified/20241031.000137 accepted/tizen/unified/20210331.054120 submit/tizen/20210330.071809 submit/tizen_6.5/20211028.161201 tizen_6.5.m2_release tizen_7.0_m2_release tizen_8.0_m2_release tizen_9.0_m2_release
authorJagrat Patidar <j1.patidar@samsung.com>
Tue, 30 Mar 2021 06:58:32 +0000 (12:28 +0530)
committerJagrat Patidar <j1.patidar@samsung.com>
Tue, 30 Mar 2021 06:59:03 +0000 (12:29 +0530)
Change-Id: I4e851f0c5c03d16bdecfa1775e46c5c980453b84

src/view.c

index c117da9..7f25b1e 100755 (executable)
@@ -693,7 +693,9 @@ void _lock_sound_check(void)
                }
                _D("lock type : %d", lock_type);
 
-               feedback_play_type(FEEDBACK_TYPE_SOUND, FEEDBACK_PATTERN_LOCK);
+               if (FEEDBACK_ERROR_NONE != feedback_play_type(FEEDBACK_TYPE_SOUND, FEEDBACK_PATTERN_LOCK)) {
+                       _E("Failed to play vibration");
+               }
        }
 }