[PATCH 2/3] drm/amdgpu: add missing breaks
Alex Deucher
alexdeucher at gmail.com
Thu Jun 23 15:54:39 UTC 2016
Saves a few CPU cycles.
Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index ac606b9..8fb5e32 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -1080,6 +1080,7 @@ int amdgpu_set_clockgating_state(struct amdgpu_device *adev,
state);
if (r)
return r;
+ break;
}
}
return r;
@@ -1097,6 +1098,7 @@ int amdgpu_set_powergating_state(struct amdgpu_device *adev,
state);
if (r)
return r;
+ break;
}
}
return r;
--
2.5.5
More information about the amd-gfx
mailing list