Fix unused assignment is IProtocol::Write()

Found by clang static analyzer
Merge pull request #321 from FREEDM-DGI/UnusedAssignment

Fix unused assignment is IProtocol::Write()