Changeset 11eb818 in rtems


Ignore:
Timestamp:
Mar 13, 2019, 3:06:45 PM (6 weeks ago)
Author:
Joel Sherrill <joel@…>
Branches:
master
Children:
c319945
Parents:
90232bc
git-author:
Joel Sherrill <joel@…> (03/13/19 15:06:45)
git-committer:
Joel Sherrill <joel@…> (03/14/19 13:21:44)
Message:

fifo.c: Eliminate logically dead code (Coverity 1437635)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/pipe/fifo.c

    r90232bc r11eb818  
    150150  if (pipe == NULL) {
    151151    err = pipe_alloc(&pipe);
    152     if (err)
    153       goto out;
     152    if (err) {
     153      pipe_unlock();
     154      return err;
     155    }
    154156  }
    155157
    156158  PIPE_LOCK(pipe);
    157159
    158   if (*pipep == NULL) {
    159     if (err)
    160       pipe_free(pipe);
    161     else
    162       *pipep = pipe;
    163   }
     160  *pipep = pipe;
    164161
    165162out:
Note: See TracChangeset for help on using the changeset viewer.