The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] gpu: host1x: drm: Cocci spatch "ptr_ret.spatch"
@ 2013-06-01 10:00 Thomas Meyer
  0 siblings, 0 replies; only message in thread
From: Thomas Meyer @ 2013-06-01 10:00 UTC (permalink / raw)
  To: linux-kernel


Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
---

diff -u -p a/drivers/gpu/host1x/drm/drm.c b/drivers/gpu/host1x/drm/drm.c
--- a/drivers/gpu/host1x/drm/drm.c
+++ b/drivers/gpu/host1x/drm/drm.c
@@ -328,10 +328,7 @@ static int tegra_gem_create(struct drm_d
 
 	bo = tegra_bo_create_with_handle(file, drm, args->size,
 					 &args->handle);
-	if (IS_ERR(bo))
-		return PTR_ERR(bo);
-
-	return 0;
+	return PTR_RET(bo);
 }
 
 static int tegra_gem_mmap(struct drm_device *drm, void *data,
diff -u -p a/drivers/gpu/host1x/drm/gem.c b/drivers/gpu/host1x/drm/gem.c
--- a/drivers/gpu/host1x/drm/gem.c
+++ b/drivers/gpu/host1x/drm/gem.c
@@ -205,10 +205,7 @@ int tegra_bo_dumb_create(struct drm_file
 
 	bo = tegra_bo_create_with_handle(file, drm, args->size,
 					    &args->handle);
-	if (IS_ERR(bo))
-		return PTR_ERR(bo);
-
-	return 0;
+	return PTR_RET(bo);
 }
 
 int tegra_bo_dumb_map_offset(struct drm_file *file, struct drm_device *drm,



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-06-01 10:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-01 10:00 [PATCH] gpu: host1x: drm: Cocci spatch "ptr_ret.spatch" Thomas Meyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox