<p>Vadim Yanitskiy has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/13019">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">vty/tdef_vty.c: drop redundant comparison<br><br>The amount of arguments is already being checked a few lines before:<br><br>  /* If any arguments are missing, redirect to 'show' */<br>  if (argc < 3)<br>    return show_timer(self, vty, argc, argv);<br><br>so we cannot reach the expression NULL inside this statement:<br><br>  group_arg = argc > 0 ? argv[0] : NULL;<br><br>Change-Id: Ice59d1a46c2080cd02060e3410706c502db4ce0b<br>Fixes: CID#190873 Logically dead code (DEADCODE)<br>---<br>M src/vty/tdef_vty.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/19/13019/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/vty/tdef_vty.c b/src/vty/tdef_vty.c</span><br><span>index 1c6af70..bcf7e67 100644</span><br><span>--- a/src/vty/tdef_vty.c</span><br><span>+++ b/src/vty/tdef_vty.c</span><br><span>@@ -274,7 +274,7 @@</span><br><span>             return show_timer(self, vty, argc, argv);</span><br><span> </span><br><span>        /* If all arguments are passed, this is configuring a timer. */</span><br><span style="color: hsl(0, 100%, 40%);">- group_arg = argc > 0 ? argv[0] : NULL;</span><br><span style="color: hsl(120, 100%, 40%);">+     group_arg = argv[0];</span><br><span>         timer_args = argv + 1;</span><br><span>       osmo_tdef_groups_for_each(g, global_tdef_groups) {</span><br><span>           if (strcmp(g->name, group_arg))</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/13019">change 13019</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/13019"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ice59d1a46c2080cd02060e3410706c502db4ce0b </div>
<div style="display:none"> Gerrit-Change-Number: 13019 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Vadim Yanitskiy <axilirator@gmail.com> </div>