drm/amdgpu: Clean up errors in jpeg_v3_0.c
Subsystems (2)
PATCH 1/1 drm/amdgpu: Clean up errors in jpeg_v3_0.c
Fix the following errors reported by checkpatch:
ERROR: space required before the open parenthesis '('
ERROR: that open brace { should be on the previous line
Signed-off-by XueBing Chen <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c +3 -4
@@ -498,7 +498,7 @@ static int jpeg_v3_0_set_powergating_state(void *handle,struct amdgpu_device *adev = (struct amdgpu_device *)handle;int ret; -if (state == adev->jpeg.cur_state) +if (state == adev->jpeg.cur_state)return 0 ;if (state ==AMD_PG_STATE_GATE )
@@ -506,7 +506,7 @@ static int jpeg_v3_0_set_powergating_state(void *handle,else ret =jpeg_v3_0_start (adev); -if (!ret) +if (!ret) adev->jpeg.cur_state = state;return ret;
@@ -605,8 +605,7 @@ static void jpeg_v3_0_set_irq_funcs(struct amdgpu_device *adev) adev->jpeg.inst->irq.funcs = &jpeg_v3_0_irq_funcs; } -const struct amdgpu_ip_block_version jpeg_v3_0_ip_block = -{ +const struct amdgpu_ip_block_version jpeg_v3_0_ip_block = { .type =AMD_IP_BLOCK_TYPE_JPEG , .major =3 , .minor =0 ,
Signature · 1 line
2.17.1