From: Ruben Kerkhof Date: Sat, 15 Dec 2018 17:41:58 +0000 (+0100) Subject: ipmi plugin: remove unneccesary cast X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=201daa33f04ce0231ad911eb106afa6f407e991e;p=collectd.git ipmi plugin: remove unneccesary cast --- diff --git a/src/ipmi.c b/src/ipmi.c index fb99bad1..15909c2b 100644 --- a/src/ipmi.c +++ b/src/ipmi.c @@ -476,7 +476,7 @@ static int sensor_list_add(c_ipmi_instance_t *st, ipmi_sensor_t *sensor) { return 0; } - list_item = (c_ipmi_sensor_list_t *)calloc(1, sizeof(c_ipmi_sensor_list_t)); + list_item = calloc(1, sizeof(*list_item)); if (list_item == NULL) { pthread_mutex_unlock(&st->sensor_list_lock); return -1;