diff --git a/src/pvAccess/channelLocal.cpp b/src/pvAccess/channelLocal.cpp index b97b901..b24a1aa 100644 --- a/src/pvAccess/channelLocal.cpp +++ b/src/pvAccess/channelLocal.cpp @@ -1039,14 +1039,6 @@ void ChannelArrayLocal::getArray(size_t offset, size_t count, size_t stride) { cout << "ChannelArrayLocal::getArray" << endl; } - if(offset<0) { - requester->getArrayDone(illegalOffsetStatus,getPtrSelf(),pvCopy); - return; - } - if(stride<0) { - requester->getArrayDone(illegalStrideStatus,getPtrSelf(),pvCopy); - return; - } const char *exceptionMessage = NULL; try { bool ok = false; @@ -1088,18 +1080,6 @@ void ChannelArrayLocal::putArray( { cout << "ChannelArrayLocal::putArray" << endl; } - if(offset<0) { - requester->putArrayDone(illegalOffsetStatus,getPtrSelf()); - return; - } - if(count<0) { - requester->putArrayDone(illegalCountStatus,getPtrSelf()); - return; - } - if(stride<0) { - requester->putArrayDone(illegalStrideStatus,getPtrSelf()); - return; - } size_t newLength = offset + count*stride; if(newLengthgetLength()) pvArray->setLength(newLength); const char *exceptionMessage = NULL; @@ -1147,9 +1127,7 @@ void ChannelArrayLocal::setLength(size_t length) try { { epicsGuard guard(*pvRecord); - if(length>=0) { - if(pvArray->getLength()!=length) pvArray->setLength(length); - } + if(pvArray->getLength()!=length) pvArray->setLength(length); } requester->setLengthDone(Status::Ok,getPtrSelf()); } catch(std::exception e) {