Skip to contentSkip to conversation

fs/adfs: remove an unused function

PATCH New Adrian Bunk 1 participant 3 messages Oct 28, 2004 – Oct 29, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs/adfs: remove an unused function

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The patch below removes an unsed fubnction from fs/adfs/dir_f.c

diffstat output:

 fs/adfs/dir_f.c |   17 -----------------
 1 files changed, 17 deletions(-)

- --- linux-2.6.10-rc1-mm1-full/fs/adfs/dir_f.c.old 2004-10-28 22:40:09.000000000 +0200
+++ linux-2.6.10-rc1-mm1-full/fs/adfs/dir_f.c 2004-10-28 22:40:20.000000000 +0200
@@ -65,23 +65,6 @@
return buf - old_buf;
}

- -static inline void adfs_writename(char *to, char *from, int maxlen)
- -{
- - int i;
- -
- - for (i = 0; i < maxlen; i++) {
- - if (from[i] == '\0')
- - break;
- - if (from[i] == '.')
- - to[i] = '/';
- - else
- - to[i] = from[i];
- - }
- -
- - for (; i < maxlen; i++)
- - to[i] = '\0';
- -}
- -
#define ror13(v) ((v >> 13) | (v << 19))

#define dir_u8(idx) \

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFBgW0XmfzqmE8StAARAravAJ9B83nOm8MpMkQZF0GXS+/kXhRBggCgq/mj df8x0Gf5GHsyvtBxWwWGY9w=
=BvbY
-----END PGP SIGNATURE-----

#1 lore raw

PATCH 1/1 fs/adfs: remove an unused function

[ this time without the problems due to the inline signature... ]

The patch below removes an unsed fubnction from fs/adfs/dir_f.c

diffstat output:

 fs/adfs/dir_f.c |   17 -----------------
 1 files changed, 17 deletions(-)
fs/adfs/dir_f.c renamed from fs/adfs/dir_f.c.old +0 -17
@@ -65,23 +65,6 @@
 	return buf - old_buf;
 }
 
-static inline void adfs_writename(char *to, char *from, int maxlen)
-{
-	int i;
-
-	for (i = 0; i < maxlen; i++) {
-		if (from[i] == '\0')
-			break;
-		if (from[i] == '.')
-			to[i] = '/';
-		else
-			to[i] = from[i];
-	}
-
-	for (; i < maxlen; i++)
-		to[i] = '\0';
-}
-
 #define ror13(v) ((v >> 13) | (v << 19))
 
 #define dir_u8(idx)				\
#2 lore raw

PATCH 1/1 fs/adfs: remove an unused function

In reply to Adrian Bunk

[ this time without the problems due to a signature... ]

The patch below removes an unsed fubnction from fs/adfs/dir_f.c

diffstat output:

 fs/adfs/dir_f.c |   17 -----------------
 1 files changed, 17 deletions(-)
fs/adfs/dir_f.c renamed from fs/adfs/dir_f.c.old +0 -17
@@ -65,23 +65,6 @@
 	return buf - old_buf;
 }
 
-static inline void adfs_writename(char *to, char *from, int maxlen)
-{
-	int i;
-
-	for (i = 0; i < maxlen; i++) {
-		if (from[i] == '\0')
-			break;
-		if (from[i] == '.')
-			to[i] = '/';
-		else
-			to[i] = from[i];
-	}
-
-	for (; i < maxlen; i++)
-		to[i] = '\0';
-}
-
 #define ror13(v) ((v >> 13) | (v << 19))
 
 #define dir_u8(idx)				\