From 7bbf53eae502417e6e0fbb204e319310f28f33ad Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Fri, 30 Jun 2006 05:43:08 +0000 Subject: Simplify code... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10156 a1c6a512-1295-4272-9138-f99709370657 --- firmware/common/dir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware/common/dir.c') diff --git a/firmware/common/dir.c b/firmware/common/dir.c index 88dbe29c80..00e3ade37d 100644 --- a/firmware/common/dir.c +++ b/firmware/common/dir.c @@ -49,10 +49,10 @@ static int strip_volume(const char* name, char* namecopy) int volume = 0; const char *temp = name; - while (*temp && strchr("/", *temp)) /* skip all leading slashes */ + while (*temp == '/') /* skip all leading slashes */ ++temp; - if (*temp && !strncmp(temp, vol_names, VOL_ENUM_POS)) + if (*temp && !strncmp(temp, vol_names, VOL_ENUM_POS)) { temp += VOL_ENUM_POS; /* behind special name */ volume = atoi(temp); /* number is following */ -- cgit v1.2.3