mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: remove excessive allow_all checks
The allow_all checks are not required for mode-E snapshot buffers operations. Bug 1573150 Change-Id: I570e70d7ae94b8c9bf2d3e55996442bfe5f71410 Signed-off-by: Leonid Moiseichuk <lmoiseichuk@nvidia.com> Reviewed-on: http://git-master/r/754413 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Konsta Holtta <kholtta@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/755494
This commit is contained in:
committed by
Terje Bergstrom
parent
ed776185ec
commit
32cf06bfdc
@@ -656,8 +656,6 @@ int gr_gk20a_css_attach(struct gk20a *g,
|
||||
int ret = 0;
|
||||
struct gr_gk20a *gr;
|
||||
|
||||
if (!g->allow_all)
|
||||
return -EACCES;
|
||||
/* we must have a placeholder to store pointer to client structure */
|
||||
if (!cs_client)
|
||||
return -EINVAL;
|
||||
@@ -713,9 +711,6 @@ int gr_gk20a_css_detach(struct gk20a *g,
|
||||
int ret = 0;
|
||||
struct gr_gk20a *gr;
|
||||
|
||||
if (!g->allow_all)
|
||||
return -EACCES;
|
||||
|
||||
if (!cs_client)
|
||||
return -EINVAL;
|
||||
|
||||
@@ -741,9 +736,6 @@ int gr_gk20a_css_flush(struct gk20a *g,
|
||||
int ret = 0;
|
||||
struct gr_gk20a *gr;
|
||||
|
||||
if (!g->allow_all)
|
||||
return -EACCES;
|
||||
|
||||
if (!cs_client)
|
||||
return -EINVAL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user