diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-08-10 17:55:07 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-08-10 17:55:50 +0000 |
commit | 6cd366b79ad15be608f829e884b4880c311cf58b (patch) | |
tree | e83573e342c0ddf0fdaea367fd6d1c45c476abbf | |
parent | b364305b16d79e32592235004872d38406ce8e9d (diff) |
sna: Remove the redundant clearing of kgem at startup
struct kgem is contained within a cleared superstruct.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/kgem.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c index 429699f8..5afe05f3 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -1126,8 +1126,6 @@ void kgem_init(struct kgem *kgem, int fd, struct pci_device *dev, unsigned gen) DBG(("%s: fd=%d, gen=%d\n", __FUNCTION__, fd, gen)); - memset(kgem, 0, sizeof(*kgem)); - kgem->fd = fd; kgem->gen = gen; |