mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +00:00
fbdevhw: Fix -Wunused-result warning in fbdev_open_pci
Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
This commit is contained in:
committed by
Enrico Weigelt
parent
22a51912d1
commit
e3aff38742
@@ -368,7 +368,7 @@ fbdev_open_pci(int scrnIndex, struct pci_device *pPci, const char *device, char
|
||||
int maj, min = -1; \
|
||||
FILE *f = fopen(res.gl_pathv[i], "r"); \
|
||||
if (f) { \
|
||||
fscanf(f, "%d:%d", &maj, &min); \
|
||||
(void)!fscanf(f, "%d:%d", &maj, &min); \
|
||||
fclose(f); \
|
||||
} \
|
||||
if (fbdev_minor != -1) { \
|
||||
|
||||
Reference in New Issue
Block a user