Skip to contentSkip to conversation

resource cgroups: remove bogus cast

PATCH Applied Davidlohr Bueso 5 participants 6 messages Dec 5, 2011 – Dec 13, 2011 cgroup

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 resource cgroups: remove bogus cast

From: Davidlohr Bueso <[email protected]>

The memparse() function already accepts const char * as the parsing string.

---
 kernel/res_counter.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
kernel/res_counter.c +1 -2
index 34683ef..6d269cc 100644
@@ -159,8 +159,7 @@ int res_counter_memparse_write_strategy(const char *buf,
 		return 0;
 	}
 
-	/* FIXME - make memparse() take const char* args */
-	*res = memparse((char *)buf, &end);
+	*res = memparse(buf, &end);
 	if (*end != '\0')
 		return -EINVAL;
 
Signature · 1 line
1.7.4.1
#1 lore raw

ping?

Quoted 14 lines · Davidlohr Bueso

From: Davidlohr Bueso <dave-mXXj517/[email protected]>

The memparse() function already accepts const char * as the parsing string.

---
 kernel/res_counter.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
kernel/res_counter.c +0 -0
index 34683ef..6d269cc 100644

kernel/res_counter.c int res_counter_memparse_write_strategy(const char *buf, · line 165

Quoted 9 lines
kernel/res_counter.c +1 -2
@@ -159,8 +159,7 @@ int res_counter_memparse_write_strategy(const char *buf,
 		return 0;
 	}
 
-	/* FIXME - make memparse() take const char* args */
-	*res = memparse((char *)buf, &end);
+	*res = memparse(buf, &end);
 	if (*end != '\0')
 		return -EINVAL;
 

--
To unsubscribe from this list: send the line "unsubscribe cgroups" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
In reply to Davidlohr Bueso

ping?

Quoted 23 lines · Davidlohr Bueso

From: Davidlohr Bueso <dave-mXXj517/[email protected]>

The memparse() function already accepts const char * as the parsing string.

---
 kernel/res_counter.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
kernel/res_counter.c +1 -2
index 34683ef..6d269cc 100644
@@ -159,8 +159,7 @@ int res_counter_memparse_write_strategy(const char *buf,
 		return 0;
 	}
 
-	/* FIXME - make memparse() take const char* args */
-	*res = memparse((char *)buf, &end);
+	*res = memparse(buf, &end);
 	if (*end != '\0')
 		return -EINVAL;
 
Acked-by on v1 1/1
#3 lore raw
In reply to Davidlohr Bueso
Quoted 5 lines · Davidlohr Bueso

From: Davidlohr Bueso <dave-mXXj517/[email protected]>

The memparse() function already accepts const char * as the parsing string.

Quoted 18 lines
---
 kernel/res_counter.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
kernel/res_counter.c +1 -2
index 34683ef..6d269cc 100644
@@ -159,8 +159,7 @@ int res_counter_memparse_write_strategy(const char *buf,
 		return 0;
 	}
 
-	/* FIXME - make memparse() take const char* args */
-	*res = memparse((char *)buf, &end);
+	*res = memparse(buf, &end);
 	if (*end != '\0')
 		return -EINVAL;
 
maintainer Applied
#4 lore raw
In reply to Davidlohr Bueso
Quoted 5 lines · Davidlohr Bueso

From: Davidlohr Bueso <dave-mXXj517/[email protected]>

The memparse() function already accepts const char * as the parsing string.

Applied to cgroup/for-3.3 w/ Pavel's Acked-by. Li Zefan, I committed w/o your ack as the patch is trivial. Please scream if you aren't happy.

Thanks.

Signature · 5 lines
tejun
--
To unsubscribe from this list: send the line "unsubscribe cgroups" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html