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;
|
||||
if (pipe == NULL) {
|
||||
err = pipe_alloc(&pipe);
|
||||
if (err)
|
||||
goto out;
|
||||
if (err) {
|
||||
pipe_unlock();
|
||||
return err;
|
||||
}
|
||||
}
|
||||
|
||||
PIPE_LOCK(pipe);
|
||||
|
||||
if (*pipep == NULL) {
|
||||
if (err)
|
||||
pipe_free(pipe);
|
||||
else
|
||||
*pipep = pipe;
|
||||
}
|
||||
*pipep = pipe;
|
||||
|
||||
out:
|
||||
pipe_unlock();
|
||||
|
||||
Reference in New Issue
Block a user