forked from Imagelibrary/rtems
fifo.c: Eliminate logically dead code (Coverity 1437635)
This commit is contained in:
@@ -149,18 +149,15 @@ static int pipe_new(
|
|||||||
pipe = *pipep;
|
pipe = *pipep;
|
||||||
if (pipe == NULL) {
|
if (pipe == NULL) {
|
||||||
err = pipe_alloc(&pipe);
|
err = pipe_alloc(&pipe);
|
||||||
if (err)
|
if (err) {
|
||||||
goto out;
|
pipe_unlock();
|
||||||
|
return err;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
PIPE_LOCK(pipe);
|
PIPE_LOCK(pipe);
|
||||||
|
|
||||||
if (*pipep == NULL) {
|
|
||||||
if (err)
|
|
||||||
pipe_free(pipe);
|
|
||||||
else
|
|
||||||
*pipep = pipe;
|
*pipep = pipe;
|
||||||
}
|
|
||||||
|
|
||||||
out:
|
out:
|
||||||
pipe_unlock();
|
pipe_unlock();
|
||||||
|
|||||||
Reference in New Issue
Block a user