[PATCH] drm/vram-helper: remove unneeded #if defined/endif guards.

2020-03-24 Thread Wambui Karuga
Remove unneeded #if/#endif guards for checking whether the CONFIG_DEBUG_FS option is set or not. If the option is not set, the compiler optimizes the functions making the guards unnecessary. Signed-off-by: Wambui Karuga --- drivers/gpu/drm/drm_gem_vram_helper.c | 4 1 file changed, 4

Re: [PATCH] drm/vram-helper: remove unneeded #if defined/endif guards.

2020-03-23 Thread Daniel Vetter
On Mon, Mar 23, 2020 at 12:37:26PM +0100, Greg KH wrote: > On Mon, Mar 23, 2020 at 02:28:02PM +0300, Wambui Karuga wrote: > > Remove unneeded #if/#endif guards for checking whether the > > CONFIG_DEBUG_FS option is set or not. If the option is not set, the > > compiler optimizes the functions

Re: [PATCH] drm/vram-helper: remove unneeded #if defined/endif guards.

2020-03-23 Thread Greg KH
On Mon, Mar 23, 2020 at 02:28:02PM +0300, Wambui Karuga wrote: > Remove unneeded #if/#endif guards for checking whether the > CONFIG_DEBUG_FS option is set or not. If the option is not set, the > compiler optimizes the functions making the guards > unnecessary. > > Signed-off-by: Wambui Karuga >