From ac0481981f2a71ceb03210e961b8a9d09bc0ebba Mon Sep 17 00:00:00 2001 From: Marek Gradzki Date: Thu, 30 Nov 2017 14:20:23 +0100 Subject: Remove dead stores and unused fields Change-Id: I3ad4e1f1aae9ed52911acbed11d931349ad94da9 Signed-off-by: Marek Gradzki --- .../java/io/fd/hc2vpp/vppnsh/impl/config/NshEntryWriterCustomizer.java | 2 +- .../java/io/fd/hc2vpp/vppnsh/impl/oper/NshEntryReaderCustomizer.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'nsh/impl/src') diff --git a/nsh/impl/src/main/java/io/fd/hc2vpp/vppnsh/impl/config/NshEntryWriterCustomizer.java b/nsh/impl/src/main/java/io/fd/hc2vpp/vppnsh/impl/config/NshEntryWriterCustomizer.java index 988c9948d..3fa397705 100755 --- a/nsh/impl/src/main/java/io/fd/hc2vpp/vppnsh/impl/config/NshEntryWriterCustomizer.java +++ b/nsh/impl/src/main/java/io/fd/hc2vpp/vppnsh/impl/config/NshEntryWriterCustomizer.java @@ -118,7 +118,7 @@ public class NshEntryWriterCustomizer extends FutureJVppNshCustomizer final List md2Datas = entry.getAugmentation(NshMdType2Augment.class).getMd2Data(); final byte md2_len = (byte) (entry.getLength() * 4 - 8); byte cur_len = 0; - byte option_len = 0; + byte option_len; LOG.debug("wr: md2_len={}", md2_len); request.tlv = new byte[md2_len]; diff --git a/nsh/impl/src/main/java/io/fd/hc2vpp/vppnsh/impl/oper/NshEntryReaderCustomizer.java b/nsh/impl/src/main/java/io/fd/hc2vpp/vppnsh/impl/oper/NshEntryReaderCustomizer.java index 147b9c50a..e5fcef6c2 100755 --- a/nsh/impl/src/main/java/io/fd/hc2vpp/vppnsh/impl/oper/NshEntryReaderCustomizer.java +++ b/nsh/impl/src/main/java/io/fd/hc2vpp/vppnsh/impl/oper/NshEntryReaderCustomizer.java @@ -101,7 +101,7 @@ public class NshEntryReaderCustomizer extends FutureJVppNshCustomizer final NshMdType2StateAugmentBuilder augmentBuilder = new NshMdType2StateAugmentBuilder(); final byte md2_len = (nshEntryDetails.tlvLength); byte cur_len = 0; - byte option_len = 0; + byte option_len; LOG.debug("rd: md2_len={}", md2_len); List md2Datas = new ArrayList<>(); -- cgit 1.2.3-korg