OSDN Git Service

gralloc_drm: show the unsupported error if drv is null android-x86-6.0-r1
authorChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 11 Jul 2016 11:37:18 +0000 (19:37 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 11 Jul 2016 11:56:50 +0000 (19:56 +0800)
commitc6a6d36255eb6f835e7d6e1c2e2ab4c8ffa9d143
tree726e985fd4282505d57fdcc095eac6ad9b811134
parenta9d0cbf474511070c13990b1a1ba7a22bba62b8e
gralloc_drm: show the unsupported error if drv is null

The unsupported driver message was suppressed by a subtle bug
of commit cbf96c0d which treats the latest checking as an else
case. Remove the unnecessary else.

Besides, logically on entering ENABLE_PIPE snippet, drv is
always null. No need to check it.
gralloc_drm.c