From 799a0a5cd4001954d8e0e855af4236e1f7b0898d Mon Sep 17 00:00:00 2001 From: Bertrik Sikken Date: Sat, 2 Jan 2010 16:03:30 +0000 Subject: Simplify some boolean expressions that compare directly against 'true' git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24144 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/stats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/plugins/stats.c') diff --git a/apps/plugins/stats.c b/apps/plugins/stats.c index d3cf9dc5a7..b928c0c4db 100644 --- a/apps/plugins/stats.c +++ b/apps/plugins/stats.c @@ -164,7 +164,7 @@ void traversedir(char* location, char* name) if (dir) { entry = rb->readdir(dir); while (entry) { - if (abort == true) + if (abort) break; /* Skip .. and . */ if (rb->strcmp(entry->d_name, ".") && rb->strcmp(entry->d_name, "..")) @@ -227,7 +227,7 @@ enum plugin_status plugin_start(const void* parameter) lasttick = *rb->current_tick; traversedir("", ""); - if (abort == true) { + if (abort) { rb->splash(HZ, "Aborted"); return PLUGIN_OK; } -- cgit v1.2.3