Skip to content

Commit

Permalink
vfio-mdev: Remove flag FBINFO_DEFAULT from fbdev sample driver
Browse files Browse the repository at this point in the history
The flag FBINFO_DEFAULT is 0 and has no effect, as struct fbinfo.flags
has been allocated to zero by framebuffer_alloc(). So do not set it.

Flags should signal differences from the default values. After cleaning
up all occurrences of FBINFO_DEFAULT, the token will be removed.

v2:
	* fix commit message (Miguel)

Signed-off-by: Thomas Zimmermann <[email protected]>
Acked-by: Sam Ravnborg <[email protected]>
Cc: Kirti Wankhede <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
Thomas Zimmermann committed Jul 24, 2023
1 parent 76a68cd commit 050bb58
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion samples/vfio-mdev/mdpy-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ static int mdpy_fb_probe(struct pci_dev *pdev,
}

info->fbops = &mdpy_fb_ops;
info->flags = FBINFO_DEFAULT;
info->pseudo_palette = par->palette;

ret = register_framebuffer(info);
Expand Down

0 comments on commit 050bb58

Please sign in to comment.