perf tools: No need to check if the argument to __get() function is NULL
[linux-2.6-microblaze.git] / tools / perf / builtin-probe.c
index c006592..99de916 100644 (file)
@@ -81,8 +81,7 @@ static int parse_probe_event(const char *str)
                params.target_used = true;
        }
 
-       if (params.nsi)
-               pev->nsi = nsinfo__get(params.nsi);
+       pev->nsi = nsinfo__get(params.nsi);
 
        /* Parse a perf-probe command into event */
        ret = parse_perf_probe_command(str, pev);