Handles are per-file, not global, so this makes no sense. Plus it's
set only after calling drm_gem_handle_create(), and drivers are not
allowed to further intialize a bo after that function has published it
already.

It is also entirely unused, which helps enormously with removing it
:-)

Since we're still holding a reference to the bo nothing bad can
happen, hence not cc: stable material.

Cc: Jeff Hugo <jeff.h...@oss.qualcomm.com>
Cc: Carl Vanderlip <quic_ca...@quicinc.com>
Cc: linux-arm-...@vger.kernel.org
Signed-off-by: Simona Vetter <simona.vet...@ffwll.ch>
Signed-off-by: Simona Vetter <simona.vet...@intel.com>
---
 drivers/accel/qaic/qaic.h      | 2 --
 drivers/accel/qaic/qaic_data.c | 1 -
 2 files changed, 3 deletions(-)

diff --git a/drivers/accel/qaic/qaic.h b/drivers/accel/qaic/qaic.h
index 0dbb8e32e4b9..7817ce18b8f2 100644
--- a/drivers/accel/qaic/qaic.h
+++ b/drivers/accel/qaic/qaic.h
@@ -213,8 +213,6 @@ struct qaic_bo {
        bool                    sliced;
        /* Request ID of this BO if it is queued for execution */
        u16                     req_id;
-       /* Handle assigned to this BO */
-       u32                     handle;
        /* Wait on this for completion of DMA transfer of this BO */
        struct completion       xfer_done;
        /*
diff --git a/drivers/accel/qaic/qaic_data.c b/drivers/accel/qaic/qaic_data.c
index 1bce1af7c72c..797289e9d780 100644
--- a/drivers/accel/qaic/qaic_data.c
+++ b/drivers/accel/qaic/qaic_data.c
@@ -731,7 +731,6 @@ int qaic_create_bo_ioctl(struct drm_device *dev, void 
*data, struct drm_file *fi
        if (ret)
                goto free_bo;
 
-       bo->handle = args->handle;
        drm_gem_object_put(obj);
        srcu_read_unlock(&qdev->dev_lock, qdev_rcu_id);
        srcu_read_unlock(&usr->qddev_lock, usr_rcu_id);
-- 
2.49.0

Reply via email to