Skip to content

Commit

Permalink
Move unused assignment to before goto
Browse files Browse the repository at this point in the history
  • Loading branch information
morrone committed Jul 27, 2023
1 parent 7f371b7 commit 09d0ab5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ldms/src/sampler/ldms_jobid.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ static int32_t jend_pos = 0;
static char ji_buf[JI_SIZE];
static int set_meta_new = 0;
static int parse_err_logged = 0;

static int parse_jobinfo(const char* file, struct ldms_job_info *ji, ldms_set_t js) {
int rc = 0;
ji->appid = ji->jobid = ji->uid = 0;
Expand Down Expand Up @@ -222,11 +223,10 @@ static int parse_jobinfo(const char* file, struct ldms_job_info *ji, ldms_set_t
parse_err_logged = 1;
}
rc = EINVAL;
goto err;
ji->jobid = 0;
goto err;
}


tmp = av_value(avl, "UID");
if (tmp) {
endp = NULL;
Expand Down

0 comments on commit 09d0ab5

Please sign in to comment.