diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-02-29 01:53:07 +0100 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2020-05-22 03:13:49 +0200 |
commit | cf0f64ff4f28b4ed0cae9a3a907eda95cbe69cfe (patch) | |
tree | e2e4f71a3031d9199a74bd7414ec0a0da8606231 /drivers/gpu/drm/nouveau | |
parent | drm/nouveau/svm: map pages after migration (diff) | |
download | linux-cf0f64ff4f28b4ed0cae9a3a907eda95cbe69cfe.tar.xz linux-cf0f64ff4f28b4ed0cae9a3a907eda95cbe69cfe.zip |
drm/nouveau/core/memory: remove redundant assignments to variable ret
The variable ret is being initialized with a value that is never
read and it is being updated later with a new value. The initialization
is redundant and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/core/memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/core/memory.c b/drivers/gpu/drm/nouveau/nvkm/core/memory.c index 4cc186262d34..38130ef272d6 100644 --- a/drivers/gpu/drm/nouveau/nvkm/core/memory.c +++ b/drivers/gpu/drm/nouveau/nvkm/core/memory.c @@ -140,7 +140,7 @@ nvkm_memory_new(struct nvkm_device *device, enum nvkm_memory_target target, { struct nvkm_instmem *imem = device->imem; struct nvkm_memory *memory; - int ret = -ENOSYS; + int ret; if (unlikely(target != NVKM_MEM_TARGET_INST || !imem)) return -ENOSYS; |