summaryrefslogtreecommitdiffstats
path: root/libcutils/android_reboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcutils/android_reboot.c')
-rw-r--r--libcutils/android_reboot.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libcutils/android_reboot.c b/libcutils/android_reboot.c
index 33a7358..16f82bb 100644
--- a/libcutils/android_reboot.c
+++ b/libcutils/android_reboot.c
@@ -105,11 +105,8 @@ int android_reboot(int cmd, int flags, char *arg)
{
int ret;
- if (!(flags & ANDROID_RB_FLAG_NO_SYNC))
- sync();
-
- if (!(flags & ANDROID_RB_FLAG_NO_REMOUNT_RO))
- remount_ro();
+ sync();
+ remount_ro();
switch (cmd) {
case ANDROID_RB_RESTART: