aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphilz-cwm6 <phytowardt@gmail.com>2013-10-19 21:41:31 +0200
committerGerrit Code Review <gerrit@cyanogenmod.org>2013-10-19 19:42:37 +0000
commitb745edae84f0fb348d745d2d12a8e3444b8ce77c (patch)
treea01f86c371f1cbd9fb4bf114d616071b97c23d4f
parent8eeed5f38c773734f59c0b09ade90515e996981e (diff)
downloadandroid_bootable_recovery-b745edae84f0fb348d745d2d12a8e3444b8ce77c.tar.gz
android_bootable_recovery-b745edae84f0fb348d745d2d12a8e3444b8ce77c.tar.bz2
android_bootable_recovery-b745edae84f0fb348d745d2d12a8e3444b8ce77c.zip
One less integer
Change-Id: Ie94b28694c12182652464c4b8e61ab4c67905b07
-rw-r--r--extendedcommands.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/extendedcommands.c b/extendedcommands.c
index c1fc19ec..00c16604 100644
--- a/extendedcommands.c
+++ b/extendedcommands.c
@@ -137,9 +137,8 @@ int install_zip(const char* packagefilepath)
#ifdef ENABLE_LOKI
if(loki_support_enabled) {
ui_print("Checking if loki-fying is needed");
- int result;
- if(result = loki_check()) {
- return result;
+ if (loki_check() != 0) {
+ return 1;
}
}
#endif