commit | 4cb8802e28c14a4b34827154ab1537bbde796cc2 | [log] [tgz] |
---|---|---|
author | Daniel Vetter <daniel.vetter@ffwll.ch> | Sat Apr 05 10:06:16 2014 +0200 |
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | Tue Apr 22 15:39:04 2014 +0200 |
tree | 567a6366c12ae3ca6de46e2e6c01c4589483bb19 | |
parent | 36b347fb31e74075315a782809007b9192c486ea [diff] |
drm/mgag200: Remove unecessary NULL check in gem_free The ->gem_free_object never gets called with a NULL pointer, the check is redundant. Also checking after the upcast allows compilers to elide it anyway. Spotted by coverity. Reviewed-by: David Herrmann <dh.herrmann@gmail.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>