summaryrefslogtreecommitdiffstats
path: root/sensorhandler.cpp
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2019-08-19 13:34:53 -0700
committerPatrick Venture <venture@google.com>2019-08-20 08:55:01 -0700
commit67ed85c9fbc9fc9d2eca374c532ff14877b01390 (patch)
tree4e075695f5b2b2527d1791fc9e12503868d02f1f /sensorhandler.cpp
parent38426dd5eb458069191973c962a3f992c33c61b9 (diff)
downloadphosphor-host-ipmid-67ed85c9fbc9fc9d2eca374c532ff14877b01390.tar.gz
phosphor-host-ipmid-67ed85c9fbc9fc9d2eca374c532ff14877b01390.zip
sensorhandler: ipmi_sen_get_sdr: drop null check
The pointer for the request is never null, therefore do not check. Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I03639db3cb579260cb6579ad01837e7078520f1f
Diffstat (limited to 'sensorhandler.cpp')
-rw-r--r--sensorhandler.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/sensorhandler.cpp b/sensorhandler.cpp
index bf1a0d5..d2594f5 100644
--- a/sensorhandler.cpp
+++ b/sensorhandler.cpp
@@ -874,11 +874,6 @@ ipmi_ret_t ipmi_sen_get_sdr(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
ipmi_data_len_t data_len, ipmi_context_t context)
{
ipmi_ret_t ret = IPMI_CC_OK;
- if (request == NULL)
- {
- return ret;
- }
-
get_sdr::GetSdrReq* req = (get_sdr::GetSdrReq*)request;
get_sdr::GetSdrResp* resp = (get_sdr::GetSdrResp*)response;
get_sdr::SensorDataFullRecord record = {0};
OpenPOWER on IntegriCloud