mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
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 <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1249960 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Seema Khowala <seemaj@nvidia.com> Reviewed-by: Konsta Holtta <kholtta@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
9c8a3df142
commit
0f58a46904
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user