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)
commit05f9467e70ed7c9cd19fd3d42346941cdc03eef3
tree455502d8cdcaf2e929fbbfc7d7f61b4d3554c2b4
parent2b3cd6249b14e25da14f13cd520eb336230a4422
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