util: device-notifier: Fix unreachable code when using unregister_notifier() 08/314808/1
authorChanwoo Choi <cw00.choi@samsung.com>
Fri, 19 Jul 2024 10:05:56 +0000 (19:05 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 19 Jul 2024 10:05:56 +0000 (19:05 +0900)
commit49068421110985fc99162a7e37df6111e205e606
treee47d0d09909b0c5c64e298b81496ec09839b9fdc
parent2e69763b104edf69674ddcfb8f3bbc91c51e225c
util: device-notifier: Fix unreachable code when using unregister_notifier()

Fix unreachable code when using unregister_notifier() by returning the
error code if failed. Before this patch, the usage code of
unregister_notifier() is not able to receive the any error code.

Change-Id: I1bf9575a05b8dd2ca1c47e26e063dc90dbf892e0
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
src/util/device-notifier.c