fbdev: Remove FBINFO_DEFAULT from devm_kzalloc()'ed structs
The flag FBINFO_DEFAULT is 0 and has no effect, as struct fbinfo.flags has been allocated to zero by devm_kzalloc(). 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. v4: * clarify commit message (Geert, Dan) v2: * fix commit message (Miguel) Signed-off-by:Thomas Zimmermann <tzimmermann@suse.de> Acked-by:
Sam Ravnborg <sam@ravnborg.org> Cc: Helge Deller <deller@gmx.de> Link: https://patchwork.freedesktop.org/patch/msgid/20230715185343.7193-5-tzimmermann@suse.de
Showing
- drivers/video/fbdev/pxafb.c 0 additions, 1 deletiondrivers/video/fbdev/pxafb.c
- drivers/video/fbdev/sa1100fb.c 0 additions, 1 deletiondrivers/video/fbdev/sa1100fb.c
- drivers/video/fbdev/wm8505fb.c 1 addition, 2 deletionsdrivers/video/fbdev/wm8505fb.c
- drivers/video/fbdev/xilinxfb.c 0 additions, 1 deletiondrivers/video/fbdev/xilinxfb.c
Loading
Please register or sign in to comment