freedreno: fix dereference before null check
authorRob Clark <robclark@freedesktop.org>
Thu, 2 Jun 2016 14:33:08 +0000 (10:33 -0400)
committerRob Clark <robclark@freedesktop.org>
Thu, 2 Jun 2016 19:44:07 +0000 (15:44 -0400)
commitba452d43e0f5ee6ceec5da031f55904f8144472c
treea4a4be80638fab200071ccb018e499de1f0b456e
parent228b2b36f4574a362357270204a23ddaeb765465
freedreno: fix dereference before null check

ptr can actually never be null so just drop the check.

CID 1362464 (#1 of 1): Dereference before null check (REVERSE_INULL)
check_after_deref: Null-checking ptr suggests that it may be null,
but it has already been dereferenced on all paths leading to the check.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/freedreno_query_hw.h