treewide: cleanup malloc calls
[collectd.git] / src / target_scale.c
index 6169fa0..b667ed1 100644 (file)
@@ -387,7 +387,7 @@ static int ts_create (const oconfig_item_t *ci, void **user_data) /* {{{ */
        int status;
        int i;
 
-       data = (ts_data_t *) malloc (sizeof (*data));
+       data = malloc (sizeof (*data));
        if (data == NULL)
        {
                ERROR ("ts_create: malloc failed.");