Skip to content

Commit

Permalink
drm/i915/perf: drop pointless static qualifier in i915_perf_add_confi…
Browse files Browse the repository at this point in the history
…g_ioctl()

There is no need to have the 'T *v' variable static
since new value always be assigned before use it.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Mao Wenan <maowenan@huawei.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20191204010154.152396-1-maowenan@huawei.com
  • Loading branch information
Mao Wenan authored and Chris Wilson committed Dec 4, 2019
1 parent cfdd174 commit c415ef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/i915_perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -3964,7 +3964,7 @@ int i915_perf_add_config_ioctl(struct drm_device *dev, void *data,
struct i915_perf *perf = &to_i915(dev)->perf;
struct drm_i915_perf_oa_config *args = data;
struct i915_oa_config *oa_config, *tmp;
static struct i915_oa_reg *regs;
struct i915_oa_reg *regs;
int err, id;

if (!perf->i915) {
Expand Down

0 comments on commit c415ef2

Please sign in to comment.