All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] [RFC PATCH] uml: fix double statement if missing braces
@ 2008-08-19  6:09 Ilpo Järvinen
  2008-08-26 16:52 ` Jeff Dike
  0 siblings, 1 reply; 4+ messages in thread
From: Ilpo Järvinen @ 2008-08-19  6:09 UTC (permalink / raw)
  To: jdike; +Cc: user-mode-linux-devel

[-- Attachment #1: Type: TEXT/PLAIN, Size: 821 bytes --]

...I'm not fully sure what's the intention here, ie., whether
the return belongs to a block with the assignment or not.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
---
 arch/um/os-Linux/sys-i386/tls.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/um/os-Linux/sys-i386/tls.c b/arch/um/os-Linux/sys-i386/tls.c
index 32ed41e..2a1412d 100644
--- a/arch/um/os-Linux/sys-i386/tls.c
+++ b/arch/um/os-Linux/sys-i386/tls.c
@@ -24,11 +24,12 @@ void check_host_supports_tls(int *supports_tls, int *tls_min) {
 			*supports_tls = 1;
 			return;
 		} else {
-			if (errno == EINVAL)
+			if (errno == EINVAL) {
 				continue;
-			else if (errno == ENOSYS)
+			} else if (errno == ENOSYS) {
 				*supports_tls = 0;
 				return;
+			}
 		}
 	}
 
-- 
1.5.2.2

[-- Attachment #2: Type: text/plain, Size: 363 bytes --]

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

[-- Attachment #3: Type: text/plain, Size: 194 bytes --]

_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

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

end of thread, other threads:[~2008-08-27 15:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-19  6:09 [uml-devel] [RFC PATCH] uml: fix double statement if missing braces Ilpo Järvinen
2008-08-26 16:52 ` Jeff Dike
2008-08-27  9:34   ` Ilpo Järvinen
2008-08-27 15:09     ` Jeff Dike

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.