amdgpu: use EINVAL instead of EBADMSG in amdgpu_bo_cpu_unmap()
authorJonathan Gray <jsg@jsg.id.au>
Tue, 1 Sep 2015 11:37:19 +0000 (21:37 +1000)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Sep 2015 14:00:25 +0000 (10:00 -0400)
commit949c325c50d4036fed1cfb34c304d3bd7b54ad28
treedce293bf7ff4cb7707027f82a4e5aa55b590350a
parentf17017b8e29b7fb8bf2c8b195bef5d4b0b4bc044
amdgpu: use EINVAL instead of EBADMSG in amdgpu_bo_cpu_unmap()

EBADMSG is a streams errno.  OpenBSD does not implement streams and does
include the streams errnos, this commit fixes the build on OpenBSD.

None of the callers of this function check the return value for -EBADMSG.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
amdgpu/amdgpu_bo.c