Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Xf86 Video Fbturbo
Commits
c0620e17
Commit
c0620e17
authored
Mar 17, 2013
by
Siarhei Siamashka
Browse files
DRI2: Typo fixes (need to return NULL instead of FALSE)
Signed-off-by:
Siarhei Siamashka
<
siarhei.siamashka@gmail.com
>
parent
7203a304
Changes
1
Show whitespace changes
Inline
Side-by-side
src/sunxi_mali_ump_dri2.c
View file @
c0620e17
...
@@ -701,17 +701,17 @@ SunxiMaliDRI2 *SunxiMaliDRI2_Init(ScreenPtr pScreen, Bool bUseOverlay)
...
@@ -701,17 +701,17 @@ SunxiMaliDRI2 *SunxiMaliDRI2_Init(ScreenPtr pScreen, Bool bUseOverlay)
xf86DrvMsg
(
pScreen
->
myNum
,
X_INFO
,
"can't load 'mali_drm' kernel module
\n
"
);
xf86DrvMsg
(
pScreen
->
myNum
,
X_INFO
,
"can't load 'mali_drm' kernel module
\n
"
);
if
(
!
xf86LoadSubModule
(
xf86Screens
[
pScreen
->
myNum
],
"dri2"
))
if
(
!
xf86LoadSubModule
(
xf86Screens
[
pScreen
->
myNum
],
"dri2"
))
return
FALSE
;
return
NULL
;
if
((
drm_fd
=
drmOpen
(
"mali_drm"
,
NULL
))
<
0
)
{
if
((
drm_fd
=
drmOpen
(
"mali_drm"
,
NULL
))
<
0
)
{
ErrorF
(
"SunxiMaliDRI2_Init: drmOpen failed!
\n
"
);
ErrorF
(
"SunxiMaliDRI2_Init: drmOpen failed!
\n
"
);
return
FALSE
;
return
NULL
;
}
}
if
(
ump_open
()
!=
UMP_OK
)
{
if
(
ump_open
()
!=
UMP_OK
)
{
drmClose
(
drm_fd
);
drmClose
(
drm_fd
);
ErrorF
(
"SunxiMaliDRI2_Init: ump_open() != UMP_OK
\n
"
);
ErrorF
(
"SunxiMaliDRI2_Init: ump_open() != UMP_OK
\n
"
);
return
FALSE
;
return
NULL
;
}
}
if
(
disp
&&
ump_id_fb
!=
UMP_INVALID_SECURE_ID
)
if
(
disp
&&
ump_id_fb
!=
UMP_INVALID_SECURE_ID
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment