From 5c4ef78cc983212a0c2e0868929aa2b699855087 Mon Sep 17 00:00:00 2001 From: Bertrik Sikken Date: Fri, 1 Jan 2010 22:47:25 +0000 Subject: Simplify some expressions using the ? operator git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24136 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/viewport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/gui') diff --git a/apps/gui/viewport.c b/apps/gui/viewport.c index 6e0d269228..22eccc161f 100644 --- a/apps/gui/viewport.c +++ b/apps/gui/viewport.c @@ -285,7 +285,7 @@ static unsigned viewport_init_ui_vp(void) ret = viewport_parse_viewport(&custom_vp[screen], screen, setting, ','); - custom_vp_loaded_ok[screen] = ret?true:false; + custom_vp_loaded_ok[screen] = (ret != NULL); } return true; /* meh fixme */ } -- cgit v1.2.3