[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191205234231.10849-1-pakki001@umn.edu>
Date: Thu, 5 Dec 2019 17:42:31 -0600
From: Aditya Pakki <pakki001@....edu>
To: pakki001@....edu
Cc: kjlu@....edu, Dave Airlie <airlied@...hat.com>,
Gerd Hoffmann <kraxel@...hat.com>,
David Airlie <airlied@...ux.ie>,
Daniel Vetter <daniel@...ll.ch>,
virtualization@...ts.linux-foundation.org,
spice-devel@...ts.freedesktop.org, dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] drm/qxl: remove unnecessary BUG_ON check for handle
In qxl_gem_object_create_with_handle(), handle's memory is not
allocated on the heap. Checking for failure of handle via BUG_ON
is unnecessary. This patch eliminates the check.
Signed-off-by: Aditya Pakki <pakki001@....edu>
---
drivers/gpu/drm/qxl/qxl_gem.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/gpu/drm/qxl/qxl_gem.c b/drivers/gpu/drm/qxl/qxl_gem.c
index 69f37db1027a..45b779a8bc22 100644
--- a/drivers/gpu/drm/qxl/qxl_gem.c
+++ b/drivers/gpu/drm/qxl/qxl_gem.c
@@ -84,7 +84,6 @@ int qxl_gem_object_create_with_handle(struct qxl_device *qdev,
int r;
BUG_ON(!qobj);
- BUG_ON(!handle);
r = qxl_gem_object_create(qdev, size, 0,
domain,
--
2.17.1
Powered by blists - more mailing lists