gpu: kill a lot of useless ifdefs
authorJens Axboe <axboe@fb.com>
Wed, 26 Apr 2017 21:05:07 +0000 (15:05 -0600)
committerJens Axboe <axboe@fb.com>
Wed, 26 Apr 2017 21:05:07 +0000 (15:05 -0600)
commit15600335cd5e6ac36952b071913cfb9934b63cd4
treefbeb48ab6e35fc5001e69343b13876df689766ae
parent6599ce5a12eb08f412536f4f9345f4506e1feae0
gpu: kill a lot of useless ifdefs

We just have to guard how we set the mem type, we don't have
to guard any check for MEM_CUDA_MALLOC inside CONFIG_CUDA
ifdefs.

Additionally, fix up some bad style.

Fixes: 03553853 ("GPUDirect RDMA support")
Signed-off-by: Jens Axboe <axboe@fb.com>
init.c
io_u.c
memory.c