File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 40
40
#include <gbm.h>
41
41
#include <sys/ioctl.h>
42
42
#include <fcntl.h>
43
- #include <sys/sysmacros.h>
44
43
#include <xf86drm.h>
45
44
46
45
#ifdef HAVE_LINUX_DMA_HEAP
@@ -497,7 +496,7 @@ static int find_render_node(char *node, size_t maxlen) {
497
496
static void open_render_node (struct wv_buffer_pool * pool )
498
497
{
499
498
char path [256 ];
500
- if (major ( pool -> config .node ) != 0 || minor ( pool -> config . node ) != 0 ) {
499
+ if (pool -> config .node ) {
501
500
if (render_node_from_dev_t (path , sizeof (path ),
502
501
pool -> config .node ) < 0 ) {
503
502
nvnc_log (NVNC_LOG_ERROR , "Could not find render node from dev_t" );
@@ -546,8 +545,7 @@ void wv_buffer_pool_reconfig(struct wv_buffer_pool* pool,
546
545
open_render_node (pool );
547
546
}
548
547
549
- if (major (pool -> config .node ) == 0 && minor (pool -> config .node ) == 0 &&
550
- !pool -> gbm )
548
+ if (!pool -> config .node && !pool -> gbm )
551
549
open_render_node (pool );
552
550
553
551
assert (pool -> gbm );
You can’t perform that action at this time.
0 commit comments