mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:44:45 +01:00
drm/amdgpu: Remove unneeded semicolon in amdgpu_pmu.c
Fixes coccicheck warning: drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c:110:3-4: Unneeded semicolon drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c:133:2-3: Unneeded semicolon drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c:163:2-3: Unneeded semicolon drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c:191:2-3: Unneeded semicolon Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: zhengbin <zhengbin13@huawei.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
b918ecb061
commit
2111a5f715
1 changed files with 4 additions and 4 deletions
|
|
@ -107,7 +107,7 @@ static void amdgpu_perf_read(struct perf_event *event)
|
|||
default:
|
||||
count = 0;
|
||||
break;
|
||||
};
|
||||
}
|
||||
} while (local64_cmpxchg(&hwc->prev_count, prev, count) != prev);
|
||||
|
||||
local64_add(count - prev, &event->count);
|
||||
|
|
@ -130,7 +130,7 @@ static void amdgpu_perf_stop(struct perf_event *event, int flags)
|
|||
break;
|
||||
default:
|
||||
break;
|
||||
};
|
||||
}
|
||||
|
||||
WARN_ON_ONCE(hwc->state & PERF_HES_STOPPED);
|
||||
hwc->state |= PERF_HES_STOPPED;
|
||||
|
|
@ -160,7 +160,7 @@ static int amdgpu_perf_add(struct perf_event *event, int flags)
|
|||
break;
|
||||
default:
|
||||
return 0;
|
||||
};
|
||||
}
|
||||
|
||||
if (retval)
|
||||
return retval;
|
||||
|
|
@ -188,7 +188,7 @@ static void amdgpu_perf_del(struct perf_event *event, int flags)
|
|||
break;
|
||||
default:
|
||||
break;
|
||||
};
|
||||
}
|
||||
|
||||
perf_event_update_userpage(event);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue