diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2021-03-19 11:40:40 +0300 |
---|---|---|
committer | Karol Herbst <kherbst@redhat.com> | 2021-11-13 01:46:04 +0300 |
commit | 78ad449dc5c88dc540f8cc07d87ce2024686cbb3 (patch) | |
tree | 54db97f9b6805261f924d8ebf0c2f6fa06cff6f2 /drivers/gpu/drm/nouveau | |
parent | c0a808b06939a39f6f90c3a33436365e6ede0618 (diff) | |
download | linux-78ad449dc5c88dc540f8cc07d87ce2024686cbb3.tar.xz |
drm/nouveau: Remove unused variable ret
Fix the following coccicheck warnings:
./drivers/gpu/drm/nouveau/nouveau_bios.c:2048:5-8: Unneeded variable:
"ret". Return "0" on line 2061.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Link: https://gitlab.freedesktop.org/drm/nouveau/-/merge_requests/10
Diffstat (limited to 'drivers/gpu/drm/nouveau')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_bios.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_bios.c b/drivers/gpu/drm/nouveau/nouveau_bios.c index e8c445eb1100..41b78e9ecd4e 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bios.c +++ b/drivers/gpu/drm/nouveau/nouveau_bios.c @@ -2045,7 +2045,6 @@ nouveau_run_vbios_init(struct drm_device *dev) { struct nouveau_drm *drm = nouveau_drm(dev); struct nvbios *bios = &drm->vbios; - int ret = 0; /* Reset the BIOS head to 0. */ bios->state.crtchead = 0; @@ -2058,7 +2057,7 @@ nouveau_run_vbios_init(struct drm_device *dev) bios->fp.lvds_init_run = false; } - return ret; + return 0; } static bool |