]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pipe: follow up cleanup to previous
authorMateusz Guzik <mjg@FreeBSD.org>
Wed, 25 Nov 2020 22:53:21 +0000 (22:53 +0000)
committerMateusz Guzik <mjg@FreeBSD.org>
Wed, 25 Nov 2020 22:53:21 +0000 (22:53 +0000)
commit2e51c2bfd17f952bb5ca28e2855d1457992f05e5
tree9ac69752e5843ff24c2354a48a14d34eb44a26ce
parentc8df8543fdf2a883b0987b6f2a18d476e45cf160
pipe: follow up cleanup to previous

The commited patch was incomplete.

- add back missing goto retry, noted by jhb
- 'if (error)'  -> 'if (error != 0)'
- consistently do:

if (error != 0)
    break;
continue;

instead of:

if (error != 0)
    break;
else
    continue;

This adds some 'continue' uses which are not needed, but line up with the
rest of pipe_write.
sys/kern/sys_pipe.c