فهرست منبع

resource cgroups: remove bogus cast

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

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Acked-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Davidlohr Bueso 13 سال پیش
والد
کامیت
52dcf8a1f8
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      kernel/res_counter.c

+ 1 - 2
kernel/res_counter.c

@@ -159,8 +159,7 @@ int res_counter_memparse_write_strategy(const char *buf,
 		return 0;
 		return 0;
 	}
 	}
 
 
-	/* FIXME - make memparse() take const char* args */
-	*res = memparse((char *)buf, &end);
+	*res = memparse(buf, &end);
 	if (*end != '\0')
 	if (*end != '\0')
 		return -EINVAL;
 		return -EINVAL;