[PATCH] drm/vmwgfx: Avoid compiler warning

2016-06-03 Thread Thierry Reding
From: Thierry Reding While the current code is correct and the compiler's DCE pass should remove either of the branches depending on the width of DMA addresses, the compiler still has to compile the code first. On configurations with 32-bit DMA addresses, right-shifting the address by 32 causes

[PATCH] drm/vmwgfx: Avoid compiler warning

2016-06-03 Thread Sinclair Yeh
Looks good to me. Thanks! Reviewed-by: Sinclair Yeh On Fri, Jun 03, 2016 at 05:47:13PM +0200, Thierry Reding wrote: > From: Thierry Reding > > While the current code is correct and the compiler's DCE pass should > remove either of the branches depending on the width of DMA addresses, > the co