]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: use error path
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Thu, 8 Oct 2015 13:57:59 +0000 (19:27 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 8 Oct 2015 14:30:13 +0000 (16:30 +0200)
commit25fe838effb40ff88b2fc48ff5b1bdf62da1e0c0
tree4d666af965186c292d42ed975f1eb20395a11c4b
parentb221805849f4269716c89503b71175ae95d3fbea
drm/i915: use error path

Use goto to handle the error path to avoid duplicating the same code. In
the error path intel_dig_port is the last one to be released as it was
the first one to be allocated and ideally the error path should be the
reverse of the execution path.

Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c