* [PATCH] drm/nouveau/fifo: fix simple_return.cocci warnings
[not found] <201508152303.srMx7PZA%fengguang.wu@intel.com>
2015-08-15 15:56 ` [PATCH] drm/nouveau/fifo: fix simple_return.cocci warnings kbuild test robot
@ 2015-08-15 15:56 ` kbuild test robot
1 sibling, 0 replies; 3+ messages in thread
From: kbuild test robot @ 2015-08-15 15:56 UTC (permalink / raw)
To: Ben Skeggs; +Cc: kbuild-all, David Airlie, dri-devel, linux-kernel
drivers/gpu/drm/nouveau/nvkm/engine/fifo/g84.c:396:1-4: WARNING: end returns can be simpified
Simplify a trivial if-return sequence. Possibly combine with a
preceding function call.
Generated by: scripts/coccinelle/misc/simple_return.cocci
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
g84.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
--- a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/g84.c
+++ b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/g84.c
@@ -393,12 +393,8 @@ g84_fifo_context_ctor(struct nvkm_object
if (ret)
return ret;
- ret = nvkm_gpuobj_new(nv_object(base), nv_object(base), 0x0100,
+ return nvkm_gpuobj_new(nv_object(base), nv_object(base), 0x0100,
0x100, NVOBJ_FLAG_ZERO_ALLOC, &base->ramfc);
- if (ret)
- return ret;
-
- return 0;
}
static struct nvkm_oclass
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] drm/nouveau/fifo: fix simple_return.cocci warnings
[not found] <201508152303.srMx7PZA%fengguang.wu@intel.com>
@ 2015-08-15 15:56 ` kbuild test robot
2015-08-15 15:56 ` kbuild test robot
1 sibling, 0 replies; 3+ messages in thread
From: kbuild test robot @ 2015-08-15 15:56 UTC (permalink / raw)
To: Ben Skeggs; +Cc: kbuild-all, David Airlie, dri-devel, linux-kernel
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c:340:1-4: WARNING: end returns can be simpified
Simplify a trivial if-return sequence. Possibly combine with a
preceding function call.
Generated by: scripts/coccinelle/misc/simple_return.cocci
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
gf100.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
--- a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c
+++ b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c
@@ -337,11 +337,7 @@ gf100_fifo_context_ctor(struct nvkm_obje
nv_wo32(base, 0x0208, 0xffffffff);
nv_wo32(base, 0x020c, 0x000000ff);
- ret = nvkm_vm_ref(nvkm_client(parent)->vm, &base->vm, base->pgd);
- if (ret)
- return ret;
-
- return 0;
+ return nvkm_vm_ref(nvkm_client(parent)->vm, &base->vm, base->pgd);
}
static void
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] drm/nouveau/fifo: fix simple_return.cocci warnings
[not found] <201507281941.2ve39gMo%fengguang.wu@intel.com>
@ 2015-07-28 11:03 ` kbuild test robot
0 siblings, 0 replies; 3+ messages in thread
From: kbuild test robot @ 2015-07-28 11:03 UTC (permalink / raw)
To: Ben Skeggs; +Cc: kbuild-all, David Airlie, dri-devel, linux-kernel
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c:372:1-4: WARNING: end returns can be simpified
Simplify a trivial if-return sequence. Possibly combine with a
preceding function call.
Generated by: scripts/coccinelle/misc/simple_return.cocci
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
gk104.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
--- a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
+++ b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
@@ -369,11 +369,7 @@ gk104_fifo_context_ctor(struct nvkm_obje
nv_wo32(base, 0x0208, 0xffffffff);
nv_wo32(base, 0x020c, 0x000000ff);
- ret = nvkm_vm_ref(nvkm_client(parent)->vm, &base->vm, base->pgd);
- if (ret)
- return ret;
-
- return 0;
+ return nvkm_vm_ref(nvkm_client(parent)->vm, &base->vm, base->pgd);
}
static void
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-08-15 15:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <201508152303.srMx7PZA%fengguang.wu@intel.com>
2015-08-15 15:56 ` [PATCH] drm/nouveau/fifo: fix simple_return.cocci warnings kbuild test robot
2015-08-15 15:56 ` kbuild test robot
[not found] <201507281941.2ve39gMo%fengguang.wu@intel.com>
2015-07-28 11:03 ` kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®