diff options
author | Bastien Nocera <hadess@hadess.net> | 2013-10-11 09:31:25 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2013-10-14 10:36:34 +0200 |
commit | 5f26bc5caa1b1d3ed352702be1fec5d5625ff1d1 (patch) | |
tree | 0aa6d8bc509c4bd8e3318bd592f953f66580f9cc /src/up-wakeups.c | |
parent | 7007fea309d211603f4815d45f950becf1a7dec6 (diff) | |
download | upower-5f26bc5caa1b1d3ed352702be1fec5d5625ff1d1.tar.gz |
daemon: Simplify _new() functions
Diffstat (limited to 'src/up-wakeups.c')
-rw-r--r-- | src/up-wakeups.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/up-wakeups.c b/src/up-wakeups.c index 0eb8e35..a9037e1 100644 --- a/src/up-wakeups.c +++ b/src/up-wakeups.c @@ -788,8 +788,6 @@ up_wakeups_finalize (GObject *object) UpWakeups * up_wakeups_new (void) { - UpWakeups *wakeups; - wakeups = g_object_new (UP_TYPE_WAKEUPS, NULL); - return UP_WAKEUPS (wakeups); + return g_object_new (UP_TYPE_WAKEUPS, NULL); } |