All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] drm/nouveau: indent an else statement
@ 2014-08-14  8:03 ` Dan Carpenter
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Carpenter @ 2014-08-14  8:03 UTC (permalink / raw)
  To: David Airlie; +Cc: kernel-janitors, Ben Skeggs, dri-devel

This else statement wasn't indented so it was confusing.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/drivers/gpu/drm/nouveau/nouveau_usif.c b/drivers/gpu/drm/nouveau/nouveau_usif.c
index cb1182d..41c9b404 100644
--- a/drivers/gpu/drm/nouveau/nouveau_usif.c
+++ b/drivers/gpu/drm/nouveau/nouveau_usif.c
@@ -83,9 +83,10 @@ usif_notify(const void *header, u32 length, const void *data, u32 size)
 		if (WARN_ON(!(ntfy = (void *)(unsigned long)rep->v0.token)))
 			return NVIF_NOTIFY_DROP;
 		BUG_ON(rep->v0.route != NVDRM_NOTIFY_USIF);
-	} else
-	if (WARN_ON(1))
-		return NVIF_NOTIFY_DROP;
+	} else {
+		if (WARN_ON(1))
+			return NVIF_NOTIFY_DROP;
+	}
 
 	if (WARN_ON(!ntfy->p || ntfy->reply != (length + size)))
 		return NVIF_NOTIFY_DROP;

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [patch] drm/nouveau: indent an else statement
@ 2014-08-14  8:03 ` Dan Carpenter
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Carpenter @ 2014-08-14  8:03 UTC (permalink / raw)
  To: David Airlie; +Cc: kernel-janitors, Ben Skeggs, dri-devel

This else statement wasn't indented so it was confusing.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/drivers/gpu/drm/nouveau/nouveau_usif.c b/drivers/gpu/drm/nouveau/nouveau_usif.c
index cb1182d..41c9b404 100644
--- a/drivers/gpu/drm/nouveau/nouveau_usif.c
+++ b/drivers/gpu/drm/nouveau/nouveau_usif.c
@@ -83,9 +83,10 @@ usif_notify(const void *header, u32 length, const void *data, u32 size)
 		if (WARN_ON(!(ntfy = (void *)(unsigned long)rep->v0.token)))
 			return NVIF_NOTIFY_DROP;
 		BUG_ON(rep->v0.route != NVDRM_NOTIFY_USIF);
-	} else
-	if (WARN_ON(1))
-		return NVIF_NOTIFY_DROP;
+	} else {
+		if (WARN_ON(1))
+			return NVIF_NOTIFY_DROP;
+	}
 
 	if (WARN_ON(!ntfy->p || ntfy->reply != (length + size)))
 		return NVIF_NOTIFY_DROP;

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-14  8:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-14  8:03 [patch] drm/nouveau: indent an else statement Dan Carpenter
2014-08-14  8:03 ` Dan Carpenter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.