summaryrefslogtreecommitdiff
path: root/src/devices/nm-device-infiniband.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2013-10-31 14:13:33 +0100
committerThomas Haller <thaller@redhat.com>2013-11-13 15:29:24 +0100
commit97935382f4aca80b8f952ea9fe3ce205253758b7 (patch)
treed1dbfe40b5e93ef2c60649956519fe763004c530 /src/devices/nm-device-infiniband.c
parentab92a0d69c6f75eb8137674a00cd9735556b06ad (diff)
downloadNetworkManager-97935382f4aca80b8f952ea9fe3ce205253758b7.tar.gz
coverity: fix various warnings detected with Coverity
These are (most likely) only warnings and not severe bugs. Some of these changes are mostly made to get a clean run of Coverity without any warnings. Error found by running Coverity scan https://bugzilla.redhat.com/show_bug.cgi?id=1025894 Co-Authored-By: Jiří Klimeš <jklimes@redhat.com> Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'src/devices/nm-device-infiniband.c')
-rw-r--r--src/devices/nm-device-infiniband.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/devices/nm-device-infiniband.c b/src/devices/nm-device-infiniband.c
index 1c91449e4e..2d1f142e02 100644
--- a/src/devices/nm-device-infiniband.c
+++ b/src/devices/nm-device-infiniband.c
@@ -68,22 +68,19 @@ constructor (GType type,
GObjectConstructParam *construct_params)
{
GObject *object;
- NMDeviceInfinibandPrivate *priv;
NMDevice *self;
object = G_OBJECT_CLASS (nm_device_infiniband_parent_class)->constructor (type,
- n_construct_params,
- construct_params);
+ n_construct_params,
+ construct_params);
if (!object)
return NULL;
self = NM_DEVICE (object);
- priv = NM_DEVICE_INFINIBAND_GET_PRIVATE (self);
nm_log_dbg (LOGD_HW | LOGD_INFINIBAND, "(%s): kernel ifindex %d",
- nm_device_get_iface (NM_DEVICE (self)),
- nm_device_get_ifindex (NM_DEVICE (self)));
-
+ nm_device_get_iface (self),
+ nm_device_get_ifindex (self));
return object;
}