summaryrefslogtreecommitdiff
path: root/src/control/hcontrol.c
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2006-02-27 09:58:32 +0000
committerClemens Ladisch <clemens@ladisch.de>2006-02-27 09:58:32 +0000
commit4433248bf3d6a89ca2136f41198ca2c9aa566953 (patch)
tree1f2ed4076d09433be3ed90721a654df9a4656d40 /src/control/hcontrol.c
parent45850439b3b28ff7ed0d1455f62f5a85572caefa (diff)
remove superfluous free() checks
free() correctly handles NULL pointers, so we can omit explicit checks for that condition.
Diffstat (limited to 'src/control/hcontrol.c')
-rw-r--r--src/control/hcontrol.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/control/hcontrol.c b/src/control/hcontrol.c
index 635f526f..5d20e740 100644
--- a/src/control/hcontrol.c
+++ b/src/control/hcontrol.c
@@ -606,8 +606,7 @@ int snd_hctl_load(snd_hctl_t *hctl)
}
err = snd_ctl_subscribe_events(hctl->ctl, 1);
_end:
- if (list.pids)
- free(list.pids);
+ free(list.pids);
return err;
}