summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/linux/cond.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/linux/cond.h b/drivers/gpu/nvgpu/include/nvgpu/linux/cond.h
index afe9c8c8..b53ada37 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/linux/cond.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/linux/cond.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2017-2019, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * This program is free software; you can redistribute it and/or modify it 4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License, 5 * under the terms and conditions of the GNU General Public License,
@@ -73,7 +73,7 @@ struct nvgpu_cond {
73 else if (_ret == -ERESTARTSYS) \ 73 else if (_ret == -ERESTARTSYS) \
74 ret = -ERESTARTSYS; \ 74 ret = -ERESTARTSYS; \
75 } else { \ 75 } else { \
76 wait_event_interruptible((c)->wq, condition); \ 76 ret = wait_event_interruptible((c)->wq, condition); \
77 } \ 77 } \
78 ret; \ 78 ret; \
79}) 79})