diff options
author | Peter Schiffer <pschiffe@redhat.com> | 2013-04-08 20:25:59 +0200 |
---|---|---|
committer | Peter Schiffer <pschiffe@redhat.com> | 2013-04-08 20:25:59 +0200 |
commit | 699a49933d2b2690888f719a447682d85c9942b0 (patch) | |
tree | abaf80cecec848db033318cfe84bac08b884dbdc /src/hardware/lscpu.c | |
parent | 9b77270eebd073ab4060ac84e4b40fc0652dff07 (diff) | |
download | openlmi-providers-699a49933d2b2690888f719a447682d85c9942b0.tar.gz openlmi-providers-699a49933d2b2690888f719a447682d85c9942b0.tar.xz openlmi-providers-699a49933d2b2690888f719a447682d85c9942b0.zip |
Hardware: Code clean up
* Got rid of asprintf() where suitable (used static memory instead)
* Removed if conditional before free()
* Replaced more hard coded numbers with LMI constants
Diffstat (limited to 'src/hardware/lscpu.c')
-rw-r--r-- | src/hardware/lscpu.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/hardware/lscpu.c b/src/hardware/lscpu.c index d4546cb..3a2a420 100644 --- a/src/hardware/lscpu.c +++ b/src/hardware/lscpu.c @@ -150,9 +150,7 @@ done: void lscpu_free_processor(LscpuProcessor *cpus) { if (cpus) { - if (cpus->stepping) { - free(cpus->stepping); - } + free(cpus->stepping); cpus->stepping = NULL; } |