summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-09-08 07:07:08 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-09-08 07:07:08 +0100
commitda0c9638d7c54b12990531fc478b2dd523ed4db9 (patch)
treeeeea8333e3c0bec8c0589ad194add388f3820b06
parent908520a7dacade8b6716e7c30549847464a33a81 (diff)
sna: Fix an unreachable piece of code
It doesn't do anything but the static analyzers at bay. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/kgem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index aff08931..53cc578c 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -3420,8 +3420,8 @@ static bool find_hang_state(struct kgem *kgem, char *path, int maxlen)
if (access(path, R_OK) == 0)
return true;
- return false;
path[0] = '\0';
+ return false;
}
void kgem_throttle(struct kgem *kgem)