Prevent hwmon pcap path from getting truncated

When the file path was begin built, one of the subdirectories was
prefixed with '/' when ended up making that the base directory.
Fix removes the '/' from the subdirectory

Tested on Everest:
ever38bmc openpower-occ-control[5590]: Power Cap Property Change (cap=980W, enabled=n)
ever38bmc openpower-occ-control[5590]: PowerCap::writeOcc: path=/sys/bus/platform/drivers/occ-hwmon/occ-hwmon.1/hwmon
ever38bmc openpower-occ-control[5590]: Writing pcap value to hwmon

Change-Id: Ia47249cdea06225ebb5869a63582851e4dff4efa
Signed-off-by: Chris Cain <cjcain@us.ibm.com>
1 file changed