remove nullptr check

This commit is contained in:
Robin Müller 2022-07-27 20:37:21 +02:00
parent f03b7cd660
commit 7e8afcc12f
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

View File

@ -34,9 +34,6 @@ inline ReturnValue_t Service11TelecommandScheduling<MAX_NUM_TCS>::handleRequest(
// Get de-serialized Timestamp
const uint8_t *data = currentPacket.getUserData();
size_t size = currentPacket.getUserDataLen();
if (data == nullptr) {
return handleInvalidData("handleRequest");
}
switch (subservice) {
case Subservice::ENABLE_SCHEDULING: {
schedulingEnabled = true;