summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Nelson <eric.nelson@boundarydevices.com>2013-06-11 17:02:40 -0700
committerRobert Winkler <robert.winkler@boundarydevices.com>2013-06-17 15:26:44 -0700
commit3ef49ddec6d0c1546ef6ca6ef133915795d4131c (patch)
tree066ecff2e52674fd4336a91c25cfccc559d57c13
parentb67f113a1e1ccb1cc9564ede3b98bdb3a7c42ef8 (diff)
h: simplify display selection
-rw-r--r--board/boundary/h/h.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/board/boundary/h/h.c b/board/boundary/h/h.c
index b73b2fde18..c249995fb6 100644
--- a/board/boundary/h/h.c
+++ b/board/boundary/h/h.c
@@ -556,9 +556,7 @@ int board_video_skip(void)
int ret;
char const *panel = getenv("panel");
struct display_info_t const *display = 0;
- if (!panel)
- panel = "1024x600";
- if (0 == strcmp(panel, "1024x600"))
+ if (!panel || !strcmp(panel, "1024x600"))
display = &d_1024x600;
else if (0 == strcmp(panel, "INNOLUX-WVGA"))
display = &d_innolux_wvga;