diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2010-01-02 16:03:30 +0000 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2010-01-02 16:03:30 +0000 |
commit | 799a0a5cd4001954d8e0e855af4236e1f7b0898d (patch) | |
tree | c9d94e6fd588e1cfd2a97729ad05b486f6f30fe5 /apps/plugins/stats.c | |
parent | d03768bc14da12f940f01993bb6df1ffd8935fe7 (diff) | |
download | rockbox-799a0a5cd4001954d8e0e855af4236e1f7b0898d.tar.gz rockbox-799a0a5cd4001954d8e0e855af4236e1f7b0898d.zip |
Simplify some boolean expressions that compare directly against 'true'
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24144 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/stats.c')
-rw-r--r-- | apps/plugins/stats.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
164 | if (dir) { | 164 | if (dir) { |
165 | entry = rb->readdir(dir); | 165 | entry = rb->readdir(dir); |
166 | while (entry) { | 166 | while (entry) { |
167 | if (abort == true) | 167 | if (abort) |
168 | break; | 168 | break; |
169 | /* Skip .. and . */ | 169 | /* Skip .. and . */ |
170 | if (rb->strcmp(entry->d_name, ".") && rb->strcmp(entry->d_name, "..")) | 170 | if (rb->strcmp(entry->d_name, ".") && rb->strcmp(entry->d_name, "..")) |
@@ -227,7 +227,7 @@ enum plugin_status plugin_start(const void* parameter) | |||
227 | lasttick = *rb->current_tick; | 227 | lasttick = *rb->current_tick; |
228 | 228 | ||
229 | traversedir("", ""); | 229 | traversedir("", ""); |
230 | if (abort == true) { | 230 | if (abort) { |
231 | rb->splash(HZ, "Aborted"); | 231 | rb->splash(HZ, "Aborted"); |
232 | return PLUGIN_OK; | 232 | return PLUGIN_OK; |
233 | } | 233 | } |