Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b39c18fc authored by J. Bruce Fields's avatar J. Bruce Fields
Browse files

sunrpc: gss: simplify rsi_parse logic



Make an obvious simplification that removes a few lines and some
unnecessary indentation; no change in behavior.

Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
parent 16141c02
Loading
Loading
Loading
Loading
+24 −28
Original line number Diff line number Diff line
@@ -224,11 +224,8 @@ static int rsi_parse(struct cache_detail *cd,

	/* major/minor */
	len = qword_get(&mesg, buf, mlen);
	if (len < 0)
		goto out;
	if (len == 0) {
	if (len <= 0)
		goto out;
	} else {
	rsii.major_status = simple_strtoul(buf, &ep, 10);
	if (*ep)
		goto out;
@@ -255,7 +252,6 @@ static int rsi_parse(struct cache_detail *cd,
	status = -ENOMEM;
	if (dup_to_netobj(&rsii.out_token, buf, len))
		goto out;
	}
	rsii.h.expiry_time = expiry;
	rsip = rsi_update(&rsii, rsip);
	status = 0;