remove nullptr check
This commit is contained in:
parent
f03b7cd660
commit
7e8afcc12f
@ -34,9 +34,6 @@ inline ReturnValue_t Service11TelecommandScheduling<MAX_NUM_TCS>::handleRequest(
|
|||||||
// Get de-serialized Timestamp
|
// Get de-serialized Timestamp
|
||||||
const uint8_t *data = currentPacket.getUserData();
|
const uint8_t *data = currentPacket.getUserData();
|
||||||
size_t size = currentPacket.getUserDataLen();
|
size_t size = currentPacket.getUserDataLen();
|
||||||
if (data == nullptr) {
|
|
||||||
return handleInvalidData("handleRequest");
|
|
||||||
}
|
|
||||||
switch (subservice) {
|
switch (subservice) {
|
||||||
case Subservice::ENABLE_SCHEDULING: {
|
case Subservice::ENABLE_SCHEDULING: {
|
||||||
schedulingEnabled = true;
|
schedulingEnabled = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user