patch-2.4.7 linux/fs/ntfs/util.c

Next file: linux/fs/ntfs/util.h
Previous file: linux/fs/ntfs/unistr.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.6/linux/fs/ntfs/util.c linux/fs/ntfs/util.c
@@ -1,16 +1,16 @@
-/*  util.c -  Miscellaneous support
+/*
+ * util.c -  Miscellaneous support
  *
- *  Copyright (C) 1997,1999 Martin von Löwis
- *  Copyright (C) 1997 Régis Duchesne
- *  Copyright (C) 2001 Anton Altaparmakov (AIA)
+ * Copyright (C) 1997,1999 Martin von Löwis
+ * Copyright (C) 1997 Régis Duchesne
+ * Copyright (C) 2001 Anton Altaparmakov (AIA)
  *
- *  The utf8 routines are copied from Python wstrop module.
+ * The utf8 routines are copied from Python wstrop module.
  */
 
 #include "ntfstypes.h"
 #include "struct.h"
 #include "util.h"
-
 #include <linux/string.h>
 #include <linux/errno.h>
 #include "support.h"
@@ -258,7 +258,7 @@
 		if (NTFS_GETU16(b + i) < NTFS_GETU16(a + i))
 			return 1;
 		if (NTFS_GETU16(a + i) == 0)
-			return 0;
+			break;
 	}
 	return 0;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)