diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2006-02-27 09:58:32 +0000 |
---|---|---|
committer | Clemens Ladisch <clemens@ladisch.de> | 2006-02-27 09:58:32 +0000 |
commit | 4433248bf3d6a89ca2136f41198ca2c9aa566953 (patch) | |
tree | 1f2ed4076d09433be3ed90721a654df9a4656d40 /src/hwdep | |
parent | 45850439b3b28ff7ed0d1455f62f5a85572caefa (diff) | |
download | alsa-lib-4433248bf3d6a89ca2136f41198ca2c9aa566953.tar.gz |
remove superfluous free() checks
free() correctly handles NULL pointers, so we can omit explicit checks
for that condition.
Diffstat (limited to 'src/hwdep')
-rw-r--r-- | src/hwdep/hwdep.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/hwdep/hwdep.c b/src/hwdep/hwdep.c index 6a5e7872..4d4490cd 100644 --- a/src/hwdep/hwdep.c +++ b/src/hwdep/hwdep.c @@ -207,8 +207,7 @@ int snd_hwdep_close(snd_hwdep_t *hwdep) int err; assert(hwdep); err = hwdep->ops->close(hwdep); - if (hwdep->name) - free(hwdep->name); + free(hwdep->name); free(hwdep); return err; } |