Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357937
b: refs/heads/master
c: e94fbaa
h: refs/heads/master
i:
  357935: da56457
v: v3
  • Loading branch information
Mika Kuoppala authored and Daniel Vetter committed Dec 19, 2012
1 parent d22f5b4 commit f4118c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fca26bb45375266d9d9b8b4b57fee905ac38fe3c
refs/heads/master: e94fbaa8750a8f20c14718633764fba2e6755825
11 changes: 1 addition & 10 deletions trunk/drivers/gpu/drm/i915/i915_debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,6 @@ i915_next_seqno_write(struct file *filp,
loff_t *ppos)
{
struct drm_device *dev = filp->private_data;
drm_i915_private_t *dev_priv = dev->dev_private;
char buf[20];
u32 val = 1;
int ret;
Expand All @@ -896,19 +895,11 @@ i915_next_seqno_write(struct file *filp,
return ret;
}

if (val == 0)
return -EINVAL;

ret = mutex_lock_interruptible(&dev->struct_mutex);
if (ret)
return ret;

if (i915_seqno_passed(val, dev_priv->next_seqno)) {
dev_priv->next_seqno = val;
DRM_DEBUG_DRIVER("Advancing seqno to %u\n", val);
} else {
ret = -EINVAL;
}
ret = i915_gem_set_seqno(dev, val);

mutex_unlock(&dev->struct_mutex);

Expand Down

0 comments on commit f4118c3

Please sign in to comment.