summaryrefslogtreecommitdiffstats
path: root/nsh/impl
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2017-11-30 14:20:23 +0100
committerMarek Gradzki <mgradzki@cisco.com>2017-11-30 14:20:23 +0100
commitac0481981f2a71ceb03210e961b8a9d09bc0ebba (patch)
tree043137c8ca199a2d548f04f9ec9a7326635c4e5f /nsh/impl
parent2c4c5fcaeb2f5bd0b3b710191bdfde8a03abbc93 (diff)
Remove dead stores and unused fields
Change-Id: I3ad4e1f1aae9ed52911acbed11d931349ad94da9 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'nsh/impl')
-rwxr-xr-xnsh/impl/src/main/java/io/fd/hc2vpp/vppnsh/impl/config/NshEntryWriterCustomizer.java2
-rwxr-xr-xnsh/impl/src/main/java/io/fd/hc2vpp/vppnsh/impl/oper/NshEntryReaderCustomizer.java2
2 files changed, 2 insertions, 2 deletions
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<Md2Data> 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<Md2Data> md2Datas = new ArrayList<>();