diff options
author | Martin Peres <martin.peres@free.fr> | 2015-01-25 22:35:44 +0300 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2015-04-14 09:59:21 +0300 |
commit | 3e5ede1defe26ab03f42a0a8c0ad1fa1727f930d (patch) | |
tree | 93339afa6ce8d463d35e7f7a8292d836b0819dba /drivers/gpu/drm | |
parent | 1d2add28edd268a8290801ccf46b37f6d5239cdb (diff) | |
download | linux-3e5ede1defe26ab03f42a0a8c0ad1fa1727f930d.tar.xz |
drm/nouveau/fuse/gm107: simplify the return logic
Spotted by coccinelle:
drivers/gpu/drm/nouveau/core/subdev/fuse/gm107.c:50:5-8: WARNING: end returns can be simpified
Signed-off-by: Martin Peres <martin.peres@free.fr>
Reviewed-by: Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/subdev/fuse/gm107.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/fuse/gm107.c b/drivers/gpu/drm/nouveau/nvkm/subdev/fuse/gm107.c index ba19158a5912..0b256aa4960f 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/fuse/gm107.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/fuse/gm107.c @@ -45,10 +45,8 @@ gm107_fuse_ctor(struct nvkm_object *parent, struct nvkm_object *engine, ret = nvkm_fuse_create(parent, engine, oclass, &priv); *pobject = nv_object(priv); - if (ret) - return ret; - return 0; + return ret; } struct nvkm_oclass |