drm/amdgpu: add missing breaks
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 23 Jun 2016 15:48:30 +0000 (11:48 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Jul 2016 19:02:03 +0000 (15:02 -0400)
Saves a few CPU cycles.

Reviewed-by: Chunming zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index c281cfd65337bd0ce81249de41f72ce5bde64860..e3cfee18fa68a4e509041cb7916d8d53b239c369 100644 (file)
@@ -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;