us_manager: uninit static variable 64/144964/1
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>
Fri, 18 Aug 2017 15:22:45 +0000 (18:22 +0300)
committerVyacheslav Cherkashin <v.cherkashin@samsung.com>
Fri, 18 Aug 2017 15:22:45 +0000 (18:22 +0300)
Set default value to static variable (status) during uninit module

Change-Id: I2d6efa246ba5bcd6c266288224103e9325d53d20
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
us_manager/us_manager.c

index a1a6dce..e6101b9 100644 (file)
@@ -276,7 +276,7 @@ uninit_helper:
 static void exit_us_manager(void)
 {
        if (status == ST_ON)
-               do_usm_stop();
+               BUG_ON(usm_stop());
 
        remove_all_cbs();