diff options
author | Bastien Nocera <hadess@hadess.net> | 2013-10-11 09:31:57 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2013-10-14 10:42:56 +0200 |
commit | 91df125e39c5200b87938ad51d28c1174b17bd1d (patch) | |
tree | e1285079413ce4202e629dce80a8a3adcd1ae3c4 /src/linux/up-device-supply.c | |
parent | 8c83871f10b363c7080afbc4dca8fb7841edf42a (diff) | |
download | upower-91df125e39c5200b87938ad51d28c1174b17bd1d.tar.gz |
daemon: Remove unneeded reset of priv struct members
It's already done by GObject.
Diffstat (limited to 'src/linux/up-device-supply.c')
-rw-r--r-- | src/linux/up-device-supply.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/linux/up-device-supply.c b/src/linux/up-device-supply.c index 53ab977..c1b046e 100644 --- a/src/linux/up-device-supply.c +++ b/src/linux/up-device-supply.c @@ -1057,14 +1057,11 @@ static void up_device_supply_init (UpDeviceSupply *supply) { supply->priv = UP_DEVICE_SUPPLY_GET_PRIVATE (supply); - supply->priv->unknown_retries = 0; - supply->priv->poll_timer_id = 0; supply->priv->enable_poll = TRUE; /* allocate the stats for the battery charging & discharging */ supply->priv->energy_old = g_new (gdouble, UP_DEVICE_SUPPLY_ENERGY_OLD_LENGTH); supply->priv->energy_old_timespec = g_new (GTimeVal, UP_DEVICE_SUPPLY_ENERGY_OLD_LENGTH); - supply->priv->energy_old_first = 0; supply->priv->shown_invalid_voltage_warning = FALSE; } |