summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-08-02 22:50:26 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2016-08-02 22:58:20 +0100
commit8e6371783738b29f92ab3b8916c652a4a600dd52 (patch)
tree3f4ec05d47a3673a805d8d49baa05faa2df3cc52 /drivers/power
parent7c9cf4e33a72c36a62471709d85d096eaac86dc6 (diff)
drm/i915: Simplify request_alloc by returning the allocated request
If is simpler and leads to more readable code through the callstack if the allocation returns the allocated struct through the return value. The importance of this is that it no longer looks like we accidentally allocate requests as side-effect of calling certain functions. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Link: http://patchwork.freedesktop.org/patch/msgid/1469432687-22756-19-git-send-email-chris@chris-wilson.co.uk Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1470174640-18242-9-git-send-email-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/power')
0 files changed, 0 insertions, 0 deletions