summaryrefslogtreecommitdiffstats
path: root/sensorhandler.cpp
diff options
context:
space:
mode:
authorJason M. Bills <jason.m.bills@linux.intel.com>2018-10-05 12:04:01 -0700
committerJason M. Bills <jason.m.bills@linux.intel.com>2018-10-05 12:30:51 -0700
commit1cd85963972719312a0017b59e29d90e1baa4ce5 (patch)
tree98a88d5037b4f911a43c751d4bf33db95ddfd50c /sensorhandler.cpp
parent021f2d116a0a1aeee56afb7445b5381f5002b88a (diff)
downloadphosphor-host-ipmid-1cd85963972719312a0017b59e29d90e1baa4ce5.tar.gz
phosphor-host-ipmid-1cd85963972719312a0017b59e29d90e1baa4ce5.zip
Fix clang-format issue in sensorhandler.cpp
A clang-format issue in sensorhandler.cpp was introduced by commit 0fbdbce22771dac6fe8d651e4c8155645807b83d that is causing CI to fail for changes to phosphor-host-ipmid. This commit updates sensorhandler.cpp with the latest clang-format changes. Change-Id: If37a25c50ee04264ce55c8c7959a4fee2aba4045 Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
Diffstat (limited to 'sensorhandler.cpp')
-rw-r--r--sensorhandler.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/sensorhandler.cpp b/sensorhandler.cpp
index e676c3e..eafb5d0 100644
--- a/sensorhandler.cpp
+++ b/sensorhandler.cpp
@@ -767,8 +767,7 @@ ipmi_ret_t ipmi_fru_get_sdr(ipmi_request_t request, ipmi_response_t response,
sizeof(record) - req->offset);
std::memcpy(resp->record_data,
- reinterpret_cast<uint8_t*>(&record) + req->offset,
- dataLength);
+ reinterpret_cast<uint8_t*>(&record) + req->offset, dataLength);
*data_len = dataLength;
*data_len += 2; // additional 2 bytes for next record ID
@@ -863,8 +862,8 @@ ipmi_ret_t ipmi_sen_get_sdr(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
*data_len);
// data_len should include the LSB and MSB:
- *data_len += sizeof(resp->next_record_id_lsb)
- + sizeof(resp->next_record_id_msb);
+ *data_len +=
+ sizeof(resp->next_record_id_lsb) + sizeof(resp->next_record_id_msb);
}
return ret;
OpenPOWER on IntegriCloud