OSDN Git Service

drm/i915: Clarify HW context size logic
authorBen Widawsky <ben@bwidawsk.net>
Thu, 7 Feb 2013 21:34:19 +0000 (13:34 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 15 Feb 2013 09:30:36 +0000 (10:30 +0100)
commit07ea0d85ac8adb87b817913d9720e3c76171b1f6
treeee296bab2f1753a491a1b52ef13f94487dbe33cd
parentcf0a6584aa6d382f802f2c3cacac23ccbccde0cd
drm/i915: Clarify HW context size logic

This was a rebase error from when the patches originally landed. Since
the context size is unsigned, there is also no use in checking if it's
less than 0.

The existing code is not really wrong, but it's not simple as it should
be.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_context.c