From 0f58a469042a1934ae6c97dee8532df64e171a48 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Tue, 8 Nov 2016 13:08:23 -0800 Subject: gpu: nvgpu: Remove duplicate err returning path railgate_enable_store() has two places where err is checked and returned. Because we have only one place where err can be set, the second check and return are superfluous. Change-Id: Id45923fc829f061fee34fa1abca0359b443e6f0d Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/1249960 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman Reviewed-by: Seema Khowala Reviewed-by: Konsta Holtta --- drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a') diff --git a/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c b/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c index a79ec201..55ebcc8f 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c @@ -303,8 +303,6 @@ static ssize_t railgate_enable_store(struct device *dev, platform->can_railgate = false; platform->user_railgate_disabled = true; } - if (err) - return err; dev_info(dev, "railgate is %s.\n", platform->can_railgate ? "enabled" : "disabled"); -- cgit v1.2.2