forked from luck/tmp_suning_uos_patched
perf list: Remove dead code in argument check
The sep is already checked being not NULL. The code seems to be a leftover from some refactoring. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Ian Rogers <irogers@google.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lore.kernel.org/lkml/20200909055849.469612-1-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
20719c82f4
commit
9f86d641ba
|
@ -92,13 +92,6 @@ int cmd_list(int argc, const char **argv)
|
||||||
else if ((sep = strchr(argv[i], ':')) != NULL) {
|
else if ((sep = strchr(argv[i], ':')) != NULL) {
|
||||||
int sep_idx;
|
int sep_idx;
|
||||||
|
|
||||||
if (sep == NULL) {
|
|
||||||
print_events(argv[i], raw_dump, !desc_flag,
|
|
||||||
long_desc_flag,
|
|
||||||
details_flag,
|
|
||||||
deprecated);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
sep_idx = sep - argv[i];
|
sep_idx = sep - argv[i];
|
||||||
s = strdup(argv[i]);
|
s = strdup(argv[i]);
|
||||||
if (s == NULL)
|
if (s == NULL)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user