drm: exynos: Remove unreachable code 13/98513/6 accepted/tizen/common/20161121.143505 accepted/tizen/ivi/20161121.235322 accepted/tizen/mobile/20161121.235307 accepted/tizen/tv/20161121.235312 accepted/tizen/wearable/20161121.235318 submit/tizen/20161121.092850
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Fri, 18 Nov 2016 13:57:41 +0000 (14:57 +0100)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 21 Nov 2016 01:48:19 +0000 (17:48 -0800)
commit69abe28c098ed9b114f0409a33b691e0e101a552
tree6350924614e0c31465836b51f223f73159fdad3c
parent4e447cc9290aeba7148838a88989caf4572fc180
drm: exynos: Remove unreachable code

This patch reworks function arguments testing to avoid unreachable code
as pointed out with an SVACE warning:

* UNREACHABLE_CODE: This statement in the source code might be unreachable
  during program execution.
   [unreachable] unreachable at drivers/gpu/drm/exynos/exynos_drm_ipp.c:1442
   [The condition property == 0 is always false because at this program
  point the variable property is always not equal to 0] The condition
  property == 0 is always false because at this program point the variable
  property is always not equal to 0 at drivers/gpu/drm/exynos/exynos_drm_ipp.c:1441

* UNREACHABLE_CODE: This statement in the source code might be unreachable
  during program execution.
    [unreachable] unreachable at drivers/gpu/drm/exynos/exynos_drm_ipp.c:1569
    [The condition event_work == 0 is always false because at this program point the
  variable event_work is always not equal to 0] The condition event_work == 0
  is always false because at this program point the variable event_work is
  always not equal to 0 at drivers/gpu/drm/exynos/exynos_drm_ipp.c:1568

Change-Id: I2a9426685c87047bf5ec3ee88b6cce4d1d7d6158
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_ipp.c