cpupower: Fix bug where return value was not used
authorSherry Hurwitz <sherry.hurwitz@amd.com>
Tue, 20 Jun 2017 07:07:37 +0000 (02:07 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 26 Jun 2017 23:43:21 +0000 (01:43 +0200)
commit6ae78b4e7c276e5306897269443f66cb4d86e47f
treec514eb94173126eb2a79fdb192286b1f3459380e
parent5422583bfa6cb09fdc6955b88f647011a83186fb
cpupower: Fix bug where return value was not used

Save return value from amd_pci_get_num_boost_states
and remove redundant setting of *support

Signed-off-by: Sherry Hurwitz <sherry.hurwitz@amd.com>
Reviewed-by: Thomas Renninger <trenn@suse.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
tools/power/cpupower/utils/helpers/misc.c