From 9aa2edf9d103e2bc3b5e2ea18cdd5105d8232ec9 Mon Sep 17 00:00:00 2001 From: diego Date: Sun, 23 Nov 2008 14:32:39 +0000 Subject: Merge another if condition check to lessen differences to vo_fbdev.c. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27998 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_wii.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libvo/vo_wii.c b/libvo/vo_wii.c index f42bde0fd2..a4e8095874 100644 --- a/libvo/vo_wii.c +++ b/libvo/vo_wii.c @@ -210,10 +210,8 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width, fb_line_len = fb_finfo.line_length; fb_size = fb_finfo.smem_len; frame_buffer = NULL; - - frame_buffer = (uint8_t *) mmap(0, fb_size, PROT_READ | PROT_WRITE, - MAP_SHARED, fb_dev_fd, 0); - if (frame_buffer == (uint8_t *) -1) { + if ((frame_buffer = (uint8_t *) mmap(0, fb_size, PROT_READ | PROT_WRITE, + MAP_SHARED, fb_dev_fd, 0)) == (uint8_t *) -1) { mp_msg(MSGT_VO, MSGL_ERR, "Can't mmap %s: %s\n", WII_DEV_NAME, strerror(errno)); return 1; } -- cgit v1.2.3