]> 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)
commit677e6a65c7b1c22b0a25423e19dafd0a99364ec4
tree455502d8cdcaf2e929fbbfc7d7f61b4d3554c2b4
parentda4efa3ef374c6aa70ff06aab32552bfb2aee3a6
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