glx: fix dead code when gc var cannot be null due to earlier check

CID 1528170 (#1 of 1): Logically dead code (DEADCODE)
At condition gc, the value of gc cannot be NULL.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Illia Polishchuk <illia.a.polishchuk@globallogic.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20893>
This commit is contained in:
Illia Polishchuk 2023-05-08 04:02:27 +03:00 committed by Marge Bot
parent c2724b4d37
commit 34e47b40e6

View file

@ -148,7 +148,7 @@ glXCreateContextAttribsARB(Display *dpy, GLXFBConfig config,
cfg ? cfg->fbconfigID : 0,
screen,
share_xid,
gc ? gc->isDirect : direct,
gc->isDirect,
num_attribs,
(const uint32_t *)
attrib_list);