]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: unwind spaghetti code in vmw_dma_select_mode
authorChristoph Hellwig <hch@lst.de>
Sat, 5 Jan 2019 08:01:08 +0000 (09:01 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Tue, 29 Jan 2019 11:30:24 +0000 (12:30 +0100)
commitf3fec029563e68de0ba5270005a8b2cb47df15e6
tree455502d8cdcaf2e929fbbfc7d7f61b4d3554c2b4
parent338d6c757890bfdd37c4083e3bd2ffbdc2624125
drm/vmwgfx: unwind spaghetti code in vmw_dma_select_mode

Just use a simple if/else chain to select the DMA mode.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c