Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Evangelos Ribeiro Tzaras
feedbackd
Commits
784152ba
Commit
784152ba
authored
May 29, 2020
by
Guido Gunther
Committed by
Guido Gunther
Jun 02, 2020
Browse files
feedback-manager: Drop superfluous g_clear_error
The error is a g_autoptr
parent
81fda313
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/fbd-feedback-manager.c
View file @
784152ba
...
...
@@ -80,10 +80,8 @@ device_changes (FbdFeedbackManager *self, gchar *action, GUdevDevice *device,
g_debug
(
"Found hotplugged vibra device at %s"
,
g_udev_device_get_sysfs_path
(
device
));
self
->
vibra
=
fbd_dev_vibra_new
(
device
,
&
err
);
if
(
!
self
->
vibra
)
{
if
(
!
self
->
vibra
)
g_warning
(
"Failed to init vibra device: %s"
,
err
->
message
);
g_clear_error
(
&
err
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment